我试图在开发包中找到的 yocto 构建中包含特定的头文件。软件包是 boost 和 alsa。
我已将 bitbake 配方文件包含到我的图像配方中,这是一个核心配方 (console-trdx-image.bb) 的 bbappend 作为 IMAGE_INSTALL += 并对图像进行 bitbaked。
当我查看我的构建工作目录时,在 alsa 和 boost 的包中,所有文件都驻留在我希望它们所在的位置 - 以 usr/include/alsa 为例。
我很难将构建/安装的包材料放入图像本身的 rootfs 中。
我的 .bbappend 为 alsa 如下:
do_install_append() {
# Create alsa dirs
install -d ${D}/${includedir}/alsa
install -d ${D}/${includedir}/alsa/sound
# Install headers
install -m 0755 ${S}/include/*.h ${D}/${includedir}/alsa
install -m 0755 ${S}/include/sound/*.h ${D}/${includedir}/alsa/sound
}
# Include these files in the install on the target
FILES_${PN} += "${includedir}/alsa/*.h"
Run Code Online (Sandbox Code Playgroud)
当我在创建的映像的 rootfs 中查看 /usr/include 时,那里没有任何内容。不是香肠。
任何人有任何想法为什么?
谢谢!
我正在尝试将“ join”命令安装到我的yocto映像中。我已经安装了busybox,但是它没有join功能,但是有一部分coreutils。Coreutils确实具有join的功能,因此我需要从coreutils配方中进行安装。
如果我仅使用IMAGE_INSTALL + =的标准配方来安装busybox和coreutils,则某些程序将符号链接到busybox,而另一些则链接到coreutils,这对我来说是个问题。我如何告诉coreutils软件包仅在映像上安装“ join”并忽略所有其他coreutils数据?