赞
踩
在移植新的u-boot 2019到i.MX6UL平台的时候遇到了如下编译问题:
$ make mx6ul_14x14_evk_defconfig # # configuration written to .config # $ make u-boot.imx scripts/kconfig/conf --syncconfig Kconfig CHK include/config.h UPD include/config.h CFG u-boot.cfg GEN include/autoconf.mk.dep CFG spl/u-boot.cfg In file included from ./include/common.h:17: include/config.h:6:10: fatal error: configs/.h: No such file or directory 6 | #include <configs/.h> | ^~~~~~~~~~~~ In file included from ./include/common.h:17: include/config.h:6:10: fatal error: configs/.h: No such file or directory 6 | #include <configs/.h> | ^~~~~~~~~~~~ compilation terminated. compilation terminated. In file included from ./include/common.h:17: include/config.h:6:10: fatal error: configs/.h: No such file or directory 6 | #include <configs/.h> | ^~~~~~~~~~~~ compilation terminated. scripts/Makefile.autoconf:80: recipe for target 'spl/u-boot.cfg' failed make[1]: *** [spl/u-boot.cfg] Error 1 make[1]: *** Waiting for unfinished jobs.... scripts/Makefile.autoconf:48: recipe for target 'include/autoconf.mk.dep' failed make[1]: *** [include/autoconf.mk.dep] Error 1 scripts/Makefile.autoconf:77: recipe for target 'u-boot.cfg' failed make[1]: *** [u-boot.cfg] Error 1 make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
遇到这种情况主要检查两个地方的Kconfig文件,首先是board/freescale/mx6ul_14x14_evk/Kconfig
:
if TARGET_MX6UL_14X14_EVK || TARGET_MX6UL_9X9_EVK
config SYS_BOARD
default "mx6ul_14x14_evk"
config SYS_VENDOR
default "freescale"
config SYS_CONFIG_NAME
default "mx6ul_14x14_evk"
endif
另外一个地方是arch/arm/mach-imx/mx6/Kconfig
:
config TARGET_MX6UL_14X14_EVK
bool "mx6ul_14x14_evk"
select BOARD_LATE_INIT
select DM
select DM_THERMAL
select MX6UL
select SUPPORT_SPL
imply CMD_DM
source "board/freescale/mx6ul_14x14_evk/Kconfig"
这两个文件里面的配置缺一不可,我这里是由于忘掉了source "board/freescale/mx6ul_14x14_evk/Kconfig"
这行代码导致的编译出错,把这行代码加上就可以解决该问题。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。