
Hi,
I am trying to build the u-boot for ARM Cortex-A8 (OMAP3).
By default the code is built for ARMv5. So, I made this change in cpu/arm_cortexa8/config.mk:
# Make ARMv5 to allow more compilers to work, even though its v7a. -PLATFORM_CPPFLAGS += -march=armv5 +PLATFORM_CPPFLAGS += -march=armv7-a
But when I run make, command-line looks like:
arm-none-linux-gnueabi-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/premi/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/codesourcery/lib/gcc/arm-none-linux- gnueabi/4.3.2/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv7-a -mno-thumb-interwork -march=armv5 -mno-thumb-interwork -Wall -Wstrict-prototypes -fno-stack-protector -c -o date.o date.c
Notice that -march=armv7-a is followed by -march=armv5.
Which option will take precedence? What is required to make sure both are same. My attempt at this change was not successful:
omap3_evm_config : unconfig - @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm omap3 omap3 + @$(MKCONFIG) $(@:_config=) arm_cortexa8 arm_cortexa8 evm omap3 omap3
Also, many other options are duplicate on the command-line. May be okay, but is there a way to remove this duplication?
Best regards, Sanjeev