[U-Boot-Users] need help regarding u-boot for csb226

Wolfgang Denk wd at denx.de
Sat Sep 13 12:30:27 CEST 2003

In message <20030911165139.GR8367 at pengutronix.de> you wrote:
> On Thu, Sep 11, 2003 at 05:17:23PM +0530, renjithgopal wrote:
> > arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0xa1fe0000 -I/uboot/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=strongarm1100 -Wall -Wstrict-prototypes -c -o crc32.o crc32.c
> > as: unrecognized option `-marmv4'
> Hmm, here the compile run sets "-march=armv4", not "-marmv4". Did you
> tweak your makefiles somehow?  

In fact all relevant architecture specific config files in U-Boot use

-> find * -type f | xargs egrep armv4
cpu/arm720t/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=arm7tdmi
cpu/arm920t/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4
cpu/sa1100/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=strongarm1100
cpu/arm925t/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4
cpu/at91rm9200/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=arm7tdmi
cpu/pxa/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=strongarm1100
cpu/arm926ejs/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4

And as you can see, these options are present on the GCC command line
above. And it's not GCC,  but  "as"  who  is  complaining  about  the
unrecognized  option. Obviously GCC is passing additional (or bad, or
at least incompatible) options to "as".

As I wrote before: this cross toolchain is broken.

Best regards,

Wolfgang Denk

Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"The number  of  Unix  installations  has  grown  to  10,  with  more
expected."    - The Unix Programmer's Manual, 2nd Edition, June, 1972

More information about the U-Boot mailing list