编译uboot时报错
include/common.h:0: warning: target CPU does not support interworking
hello_world.c:0: warning: target CPU does not support interworking
stubs.c:0: warning: target CPU does not support interworking
include/common.h:0: warning: target CPU does not support interworking
在uboot的当前目录下的Makefile中找到配置文件名,类似
at91sam9261ek_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
得知CPU类型为arm926ejs,修改cpu/arm926ejs/config.mk
将PLATFORM_CPPFLAGS += -march=armv4修改为
PLATFORM_CPPFLAGS += -march=armv4t
即可。
解决U-Boot编译警告
本文介绍了解决U-Boot编译时出现的“目标CPU不支持interworking”警告的方法。通过修改配置文件中的CPU架构标志,从armv4更改为armv4t,成功消除了编译警告。
1015

被折叠的 条评论
为什么被折叠?



