include / config.h:致命错误:configs / .h:没有这样的文件或目录

时间:2017-08-23 08:55:07

标签: yocto u-boot

我正在使用Poky发行版2.0.1来构建u-boot v2015.07(移植任务)。但是,我遇到了以下错误

| In file included from ./include/common.h:18:0:
| include/config.h:5:22: fatal error: configs/.h: No such file or directory
| In file included from ./include/common.h:18:0:
| include/config.h:5:22: fatal error: configs/.h: No such file or directory
| compilation terminated.
| compilation terminated.
| make[1]: *** [include/autoconf.mk] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make[1]: *** [include/autoconf.mk.dep] Error 1
| make: *** No rule to make target `include/config/auto.conf', needed by `include/config/uboot.release'.  Stop.
| WARNING: exit code 1 from a shell command.
| ERROR: oe_runmake failed

config.h 文件由 scripts / Makefile.autoconf 生成。我已经在 board / renesas / iwg20m_q7 / Kconfig 中添加了配置头文件 include / configs / iwg20m_q7.h 并声明了SYS_CONFIG_NAME,如下所示:

if TARGET_IWG20M

config SYS_BOARD
       default "iwg20m_q7"

config SYS_VENDOR
       default "renesas"

config SYS_CONFIG_NAME
       default "iwg20m_q7"

endif

但是,我不知道$(CONFIG_SYS_CONFIG_NAME)(在 scripts / Makefile.autoconf 中)如何获取SYS_CONFIG_NAME的值(在 board / renesas / iwg20m_q7 / Kconfig中) )。因此,一旦生成config.h文件(缺少正确的目录和SYS_CONFIG_NAME iwg20m_q7),这会导致失败

config.h
/* Automatically generated - do not edit */
#define CONFIG_BOARDDIR board/  -----> missing directory board/renesas/iwg20m_q7
#include <config_defaults.h>
#include <config_uncmd_spl.h>
#include <configs/.h>    -----> missing SYS_CONFIG_NAME
#include <asm/config.h>
#include <config_fallbacks.h>

我已经尝试添加iwg20m_defconfig

CONFIG_ARM=y
CONFIG_RMOBILE=y
CONFIG_TARGET_IWG20M=y
CONFIG_SYS_ARCH="arm"
CONFIG_SYS_CPU="armv7"
CONFIG_SYS_SOC="iwg20m"
CONFIG_SYS_VENDOR="renesas"
CONFIG_SYS_BOARD="iwg20m_q7"
CONFIG_SYS_CONFIG_NAME="iwg20m_q7"
# CONFIG_CMD_BDI is not set
# CONFIG_CMD_CONSOLE is not set
# CONFIG_CMD_BOOTD is not set
# CONFIG_CMD_IMI is not set
# CONFIG_CMD_IMLS is not set
# CONFIG_CMD_XIMG is not set
# CONFIG_CMD_ENV_EXISTS is not set
# CONFIG_CMD_LOADB is not set
# CONFIG_CMD_FLASH is not set
# CONFIG_CMD_FPGA is not set
# CONFIG_CMD_ECHO is not set
# CONFIG_CMD_ITEST is not set
# CONFIG_CMD_SOURCE is not set
# CONFIG_CMD_SETEXPR is not set
# CONFIG_CMD_MISC is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_BAR=y
CONFIG_SH_SDHI=y
CONFIG_OF_LIBFDT=y
CONFIG_OF_BOARD_SETUP=y

并重建,我看到 .config 文件也已正确更新,甚至已添加&#34; source&#34; board / renesas / iwg20m_q7 / Kconfig&#34; < / EM>&#34;转到 arch / arm / Kconfig 文件。

然而,问题仍未解决。有人可以帮我解决这个问题吗?感谢。

0 个答案:

没有答案