
Ok I managed to compile u-boot-1.1.5_armel_1.2 with ELDK 4.1 and gcc 4.0. I solved it by the editing the following files.
In the main Makefile at line 228 i removed the example
from:
SUBDIRS = tools \ examples \ post \ post/cpu
to:
SUBDIRS = tools \ post \ post/cpu .PHONY : $(SUBDIRS)
then I edit in the file cpu/arm926ejs/at91sam926x/config.mk
from:
PLATFORM_CPPFLAGS += -mapcs-32 -march=armv5te -mtune=arm926ejs
to:
PLATFORM_CPPFLAGS += -march=armv5te -Wa,-mapcs-32 -mtune=arm926ej-s
and then in the file cpu/arm926ejs/at91sam926x/usb_ohci.c at line 1659
from:
writel (gohci.hc_control = OHCI_USB_RESET, &gohci.regs->control);
to:
gohci.hc_control = OHCI_USB_RESET; writel (gohci.hc_control, &gohci.regs->control);
now I passed the compilation but I have not yet tried it on the board but I will let you know if it worked or not. I you have the same problem try this or compile it with ELDK 3.1 which is using gcc 3.3.3