- 论坛徽章:
- 0
|
问题解决了。之前make时就出错了,呵呵
$ make
arm-none-linux-gnueabi-gcc -Wa,-gstabs -D__ASSEMBLY__ -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -D__KERNEL__ -DTEXT_BASE=0x40208800 -I/root/u-boot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /root/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv7a -mabi=apcs-gnu -c -o cpu/omap3/start.o /root/u-boot/u-boot/cpu/omap3/start.S
cc1: error: bad value (armv7a) for -march= switch
make: *** [cpu/omap3/start.o] Error 1
原因:This issue is caused by latest GCC changing for ARMV7-A architecture, that should uses -march=armv7-a but not -march=armv7a.
To fix it, in u-boot\cpu\omap3\config.mk, change following line:
PLATFORM_CPPFLAGS += -march=armv7a
To:
PLATFORM_CPPFLAGS += -march=armv7-a
办法即将x-load-1.4下的cpu/omap3/config.mk 中-march=arm7a改成-march=arm7-a.再make,就成功了。 |
|