当前位置:   article > 正文

移植u-boot问题:include/config.h:6:10: fatal error: configs/.h: No such file or directory_needed by 'include/config/uboot.release

needed by 'include/config/uboot.release

在移植新的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.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34

遇到这种情况主要检查两个地方的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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

另外一个地方是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"
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

这两个文件里面的配置缺一不可,我这里是由于忘掉了source "board/freescale/mx6ul_14x14_evk/Kconfig"这行代码导致的编译出错,把这行代码加上就可以解决该问题。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/223402
推荐阅读
相关标签
  

闽ICP备14008679号