linux - 在 defconfig 条目上测试 Buildroot 外部包失败

标签 linux cross-compiling buildroot

我正在尝试为 sama5d4_xplained 板添加一个 br2-external 包到 Buildroot 构建中。我正在使用 utils/test-pkg 实用程序对其进行测试,并且根据 missing.config,它在 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y 上失败的每个工具链> 文件。它是构建中使用的 sama5d4_xplained_defconfig 中的一个条目。

我试图在手册中和谷歌搜索中找到该选项的含义,但无处可寻。它似乎与我机器上安装的内核头文件版本无关,因为我的头文件是 4.15

使用的确切命令是:

./utils/test-pkg -c ../../config/sama5d4_xplained_defconfig -p {package}

sama5d4_xplained_defconfig 有问题条目:

BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y

日志文件内容:

#
# configuration written to /home/bartlomiej/br-test-pkg/br-arm-full-static/.config
#
Value requested for BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9 not in final .config
Requested value:  BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
Actual value:     

Using support/config-fragments/autobuild/br-arm-full-static.config as base
Merging support/config-fragments/minimal.config
Merging ../../config/sama5d4_xplained_defconfig
  GEN     /home/bartlomiej/br-test-pkg/br-arm-full-static/Makefile
#
# configuration written to /home/bartlomiej/br-test-pkg/br-arm-full-static/.config
#
Value requested for BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9 not in final .config
Requested value:  BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
Actual value:     

Using support/config-fragments/autobuild/br-arm-full-static.config as base
Merging support/config-fragments/minimal.config
Merging ../../config/sama5d4_xplained_defconfig
  GEN     /home/bartlomiej/br-test-pkg/br-arm-full-static/Makefile
#
# configuration written to /home/bartlomiej/br-test-pkg/br-arm-full-static/.config
#
Value requested for BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9 not in final .config
Requested value:  BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
Actual value:     

这个条目是什么意思,我该怎么做才能解决构建问题?

最佳答案

你必须制作一个只启用你的包的配置文件。使用最近的 Buildroot,您还可以使用 test-pkg -p <pkg>没有-c选项。

test-pkg将使用一组不同的工具链(默认情况下,用于 the autobuilders 的工具链的子集)对一个或多个包进行构建测试。您提供的配置文件 -c应该选择您要测试的包。任何不满足这些包依赖关系的工具链都将被跳过。

董事会 defconfigs(如 sama5d4_xplained_defconfig)构建工具链作为其配置的一部分。此工具链总是不同于自动构建器中使用的工具链。因此,如果您将其中一个 defconfigs 提供为 -c选项,将始终跳过所有工具链。

但是,如果您只对 sama5d4 Xplained 板感兴趣,则没有必要使用 test-pkg 来使用所有工具链测试您的包。只需将包启用到自定义配置即可。

关于linux - 在 defconfig 条目上测试 Buildroot 外部包失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56321764/

相关文章:

c++ - 共享内存段键突然改变

linux - 使用 MD5 与 perl archive::tar 比较磁带和磁盘中的文件失败

buildroot - 如何创建buildroot外部主机包

c++ - 忽略 C++ 中的 undefined reference

linux - 文本文件中的字符串替换

使用 libwebsockets 编译 libuv

python - 使用 distutilscross 交叉编译 python native C 扩展,setup.py 不会接受 '-x' 参数

linux - Golang : How to cross compile on Linux for Windows

bluetooth - bcm43xx_init buildroot raspberry pi 3 hciattach 初始化超时

linux - 如何在buildroot中重建rootfs