diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-09-04 04:09:53 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-09-04 22:03:51 +0200 |
commit | a9df50486c0e5a7a36531aacf49c2a57ac21c7fe (patch) | |
tree | bafdf6193767a6ea4d4e65814cf40766c6a93bbd | |
parent | ca56df4e442027e51465fd23435d6a165f9ef720 (diff) | |
download | buildroot-novena-a9df50486c0e5a7a36531aacf49c2a57ac21c7fe.tar.gz buildroot-novena-a9df50486c0e5a7a36531aacf49c2a57ac21c7fe.zip |
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>
-rw-r--r-- | toolchain/uClibc/uclibc.mk | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk index 9d0b6db94..583d199ff 100644 --- a/toolchain/uClibc/uclibc.mk +++ b/toolchain/uClibc/uclibc.mk @@ -41,22 +41,9 @@ UCLIBC_TARGET_ARCH:=$(shell $(SHELL) -c "echo $(ARCH) | sed \ -e 's/cris.*/cris/' \ -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) -ifneq ($(UCLIBC_TARGET_ENDIAN),BIG) -UCLIBC_TARGET_ENDIAN:= -endif -endif +UCLIBC_TARGET_ENDIAN:=$(call qstrip,$(BR2_ENDIAN)) + ifeq ($(UCLIBC_TARGET_ENDIAN),LITTLE) UCLIBC_NOT_TARGET_ENDIAN:=BIG else |