生成u-boot.bin时出现如下问题
#make
GEN include/autoconf.mk.dep
cc1: error: bad value (armv4) for -march= switch
cc1: error: bad value (armv4) for -mtune= switch
GEN include/autoconf.mk
cc1: error: bad value (armv4) for -march= switch
cc1: error: bad value (armv4) for -mtune= switch
CHK include/config/uboot.release
CHK include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
CC lib/asm-offsets.s
lib/asm-offsets.c:1: error: bad value (armv4) for -march= switch
lib/asm-offsets.c:1: error: bad value (armv4) for -mtune= switch
make[1]: *** [lib/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
请问这个问题如何解决?
------解决方案--------------------
没有指定交叉编译工具链。设置环境变量,或者make时带上CROSS_COMPILE参数。如make CROSS_COMPILE=arm-none-linux-gnueabi-
------解决方案--------------------
# set default to nothing for native builds
ifeq ($(HOSTARCH),$(ARCH))
CROSS_COMPILE ?=
endif
在endif下面加上
CROSS_COMPILE=arm-linux-也可以
uboot2014版
------解决方案--------------------
没有指定你安装的gcc编译工具 CC可不是一个编译工具 名字类似 arm-xxx-linux -geabi