]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix dbau1xxx (= MIPS big and little endian) build options.
authorWolfgang Denk <wd@pollux.denx.de>
Mon, 8 Aug 2005 21:06:32 +0000 (23:06 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Mon, 8 Aug 2005 21:06:32 +0000 (23:06 +0200)
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

Makefile
cpu/mips/config.mk

index 59f61d98f41a7ba2376bfcfc39836d6dd20e2088..23a843ca9cfa0ecad8944e796378eca15fc2e605 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1615,7 +1615,7 @@ dbau1550_config           :       unconfig
 dbau1550_el_config     :       unconfig
        @ >include/config.h
        @echo "#define CONFIG_DBAU1550 1" >>include/config.h
-       @./mkconfig -a dbau1x00 mips mips dbau1x00 "" little
+       @./mkconfig -a dbau1x00 mips mips dbau1x00
 
 #########################################################################
 ## MIPS64 5Kc
index 3c9aab8dfe64b18110f541bc9277e2c864c48ac4..fd10747aa33ebbc0b77e621c027f93df8aa3c43a 100644 (file)
@@ -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)