[U-Boot-Users] Re: MIPS LE build problems
Matej Kupljen
matej.kupljen at ultra.si
Wed Aug 10 08:05:34 CEST 2005
Hi
> I have attached the patch.
Thanks.
Few comments, though.
I use my own toolchain, built with the crosstool and a few patches.
binutils: 2.15
gcc: 3.3.5
glibc: 2.3.5
> #########################################################################
> ## 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}')
Should this be, like:
$(CROSS_COMPILE)as --version|grep "GNU assembler"|awk '{print $$3}'|awk
-F . '{print $$2}')
Because my compiler is: mipsel-linux-gcc
> 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)
The -mips_allow_branch_to_undefined does not work for me :-)
I used this patch:
http://sources.redhat.com/ml/binutils/2004-04/msg00476.html
And I have to use -allow_branch_to_undefined.
Anybody knows why?
BR,
Matej
More information about the U-Boot
mailing list