diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2012-08-21 23:27:37 +0200 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2012-08-24 00:34:43 +0200 |
commit | 2c0e3de384f6a3323a1ffbf5db390b3081c3e102 (patch) | |
tree | 00ab584b5fd0d49c3f22bccdaa184e5119237efe /arch/mips/cpu | |
parent | d2aa5dca74fcf8cbe7fa1f27606a5663bb52d3e6 (diff) | |
download | u-boot-imx-2c0e3de384f6a3323a1ffbf5db390b3081c3e102.zip u-boot-imx-2c0e3de384f6a3323a1ffbf5db390b3081c3e102.tar.gz u-boot-imx-2c0e3de384f6a3323a1ffbf5db390b3081c3e102.tar.bz2 |
MIPS: factor out endianess flag handling to arch config.mk
This is CPU independent and should be configured architecture-wide.
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch/mips/cpu')
-rw-r--r-- | arch/mips/cpu/mips32/config.mk | 19 | ||||
-rw-r--r-- | arch/mips/cpu/xburst/config.mk | 3 |
2 files changed, 2 insertions, 20 deletions
diff --git a/arch/mips/cpu/mips32/config.mk b/arch/mips/cpu/mips32/config.mk index a1cd590..a0e4de5 100644 --- a/arch/mips/cpu/mips32/config.mk +++ b/arch/mips/cpu/mips32/config.mk @@ -29,21 +29,4 @@ # MIPSFLAGS := -march=mips32r2 -# Handle special prefix in ELDK 4.0 toolchain -ifneq (,$(findstring 4KCle,$(CROSS_COMPILE))) -ENDIANNESS := -EL -endif - -ifdef CONFIG_SYS_LITTLE_ENDIAN -ENDIANNESS := -EL -endif - -ifdef CONFIG_SYS_BIG_ENDIAN -ENDIANNESS := -EB -endif - -# Default to EB if no endianess is configured -ENDIANNESS ?= -EB - -PLATFORM_CPPFLAGS += $(MIPSFLAGS) $(ENDIANNESS) -PLATFORM_LDFLAGS += $(ENDIANNESS) +PLATFORM_CPPFLAGS += $(MIPSFLAGS) diff --git a/arch/mips/cpu/xburst/config.mk b/arch/mips/cpu/xburst/config.mk index bce0c1b..18d49ab 100644 --- a/arch/mips/cpu/xburst/config.mk +++ b/arch/mips/cpu/xburst/config.mk @@ -20,5 +20,4 @@ # MA 02111-1307 USA # -PLATFORM_CPPFLAGS += -march=mips32 -EL -PLATFORM_LDFLAGS += -EL +PLATFORM_CPPFLAGS += -march=mips32 |