diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2005-08-08 23:06:32 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2005-08-08 23:06:32 +0200 |
commit | 2191923072413972d8dbf3e1b2f8ce6762a85800 (patch) | |
tree | 7466fe41f385b14b572d4765f5aaadaccd8a48d2 /cpu | |
parent | 700a0c648df72f2c8e0589c0d0470b5ffd7cab7b (diff) | |
download | u-boot-imx-2191923072413972d8dbf3e1b2f8ce6762a85800.zip u-boot-imx-2191923072413972d8dbf3e1b2f8ce6762a85800.tar.gz u-boot-imx-2191923072413972d8dbf3e1b2f8ce6762a85800.tar.bz2 |
Fix dbau1xxx (= MIPS big and little endian) build options.
Incorrect gcc options (big endian -BE switch) were used for
dbau1550_el which is a little endian build; also get rid of reference
to non-existant cpu/mips/little/liblittle.a library
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/mips/config.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cpu/mips/config.mk b/cpu/mips/config.mk index 3c9aab8..fd10747 100644 --- a/cpu/mips/config.mk +++ b/cpu/mips/config.mk @@ -24,9 +24,17 @@ v=$(shell \ mips-linux-as --version|grep "GNU assembler"|awk '{print $$3}'|awk -F . '{print $$2}') MIPSFLAGS=$(shell \ if [ "$v" -lt "14" ]; then \ - echo "-mcpu=4kc -EB -mabicalls"; \ + echo "-mcpu=4kc"; \ else \ - echo "-march=4kc -mtune=4kc -Wa,-mips_allow_branch_to_undefined -EB -mabicalls"; \ + echo "-march=4kc -mtune=4kc -Wa,-mips_allow_branch_to_undefined"; \ fi) +ifneq (,$(findstring 4KCle,$(CROSS_COMPILE))) +ENDIANNESS = -EL +else +ENDIANNESS = -EB +endif + +MIPSFLAGS += $(ENDIANNESS) -mabicalls + PLATFORM_CPPFLAGS += $(MIPSFLAGS) |