gpt4 book ai didi

yocto - include/config.h : fatal error: configs/. h: 没有那个文件或目录

转载 作者:行者123 更新时间:2023-12-05 07:40:50 25 4
gpt4 key购买 nike

我正在使用 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 生成。我已经添加了配置头文件include/configs/iwg20m_q7.h并在board/renesas/iwg20m_q7/Kconfig中声明了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 文件也已正确更新,甚至添加了“source "board/renesas/iwg20m_q7/Kconfig"”行到 arch/arm/Kconfig 文件。

但是问题还是没有解决。任何人都可以帮我解决这个问题吗?谢谢。

最佳答案

就像您自己回答的一样,当您的板特定 Kconfig 不存在或不包含板特定配置变量(在您的情况下为 CONFIG_TARGET_IWG20M)但它存在于板的 defconfig 文件中时,就会出现问题。

根据经验,应该检查 elinux 托管的 u-boot 移植指南中列出的所有文件的内容在“U-Boot 目录”标题下。

关于yocto - include/config.h : fatal error: configs/. h: 没有那个文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45835036/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com