uClibc: use BR2_ENDIAN to simplify endianess selection
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
ca56df4e44
commit
a9df50486c
@ -41,22 +41,9 @@ UCLIBC_TARGET_ARCH:=$(shell $(SHELL) -c "echo $(ARCH) | sed \
|
|||||||
-e 's/cris.*/cris/' \
|
-e 's/cris.*/cris/' \
|
||||||
-e 's/xtensa.*/xtensa/' \
|
-e 's/xtensa.*/xtensa/' \
|
||||||
")
|
")
|
||||||
# just handle the ones that can be big or little
|
|
||||||
UCLIBC_TARGET_ENDIAN:=$(shell $(SHELL) -c "echo $(ARCH) | sed \
|
|
||||||
-e 's/armeb/BIG/' \
|
|
||||||
-e 's/arm/LITTLE/' \
|
|
||||||
-e 's/mipsel/LITTLE/' \
|
|
||||||
-e 's/mips/BIG/' \
|
|
||||||
-e 's/sh.*eb/BIG/' \
|
|
||||||
-e 's/sh.*/LITTLE/' \
|
|
||||||
-e 's/sparc.*/BIG/' \
|
|
||||||
")
|
|
||||||
|
|
||||||
ifneq ($(UCLIBC_TARGET_ENDIAN),LITTLE)
|
UCLIBC_TARGET_ENDIAN:=$(call qstrip,$(BR2_ENDIAN))
|
||||||
ifneq ($(UCLIBC_TARGET_ENDIAN),BIG)
|
|
||||||
UCLIBC_TARGET_ENDIAN:=
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
ifeq ($(UCLIBC_TARGET_ENDIAN),LITTLE)
|
ifeq ($(UCLIBC_TARGET_ENDIAN),LITTLE)
|
||||||
UCLIBC_NOT_TARGET_ENDIAN:=BIG
|
UCLIBC_NOT_TARGET_ENDIAN:=BIG
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user