[U-Boot-Users] MIPS LE build problems

Wolfgang Denk wd at denx.de
Mon Aug 8 23:13:26 CEST 2005


Dear Thomas,

I always wondered what exactly was the reason why I was not  able  to
build  the dbau1x00 targets (especially the little endian dbau1550_el
target using the ELDK toolchain). Also, I always wondered  about  the
reference to a non-exitent cpu/mips/little/liblittle.a library.

Is ther ea special reason for the current settings of  build  options
for the dbau1x00 targets?

Attached below is a patch which makes all dbau1x00 targets build fine
with the current ELDK, and I believe these settings are more  correct
than the previous ones.

If you don't protest I would like to merge this patch into the public
source tree?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Remember, there's a big difference between kneeling down and  bending
over.                                                   - Frank Zappa

-------------- next part --------------
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

---
commit 2191923072413972d8dbf3e1b2f8ce6762a85800
tree 7466fe41f385b14b572d4765f5aaadaccd8a48d2
parent 700a0c648df72f2c8e0589c0d0470b5ffd7cab7b
author Wolfgang Denk <wd at pollux.denx.de> Mon, 08 Aug 2005 23:06:32 +0200
committer Wolfgang Denk <wd at pollux.denx.de> Mon, 08 Aug 2005 23:06:32 +0200

 Makefile           |    2 +-
 cpu/mips/config.mk |   12 ++++++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
--- 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
diff --git a/cpu/mips/config.mk b/cpu/mips/config.mk
--- 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)


More information about the U-Boot mailing list