小编Chr*_*ris的帖子

在 yocto build 中包含特定的头文件

我试图在开发包中找到的 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 时,那里没有任何内容。不是香肠。

任何人有任何想法为什么?

谢谢!

boost alsa bitbake yocto

5
推荐指数
1
解决办法
6456
查看次数

Yocto busybox覆盖coreutils

我正在尝试将“ join”命令安装到我的yocto映像中。我已经安装了busybox,但是它没有join功能,但是有一部分coreutils。Coreutils确实具有join的功能,因此我需要从coreutils配方中进行安装。

如果我仅使用IMAGE_INSTALL + =的标准配方来安装busybox和coreutils,则某些程序将符号链接到busybox,而另一些则链接到coreutils,这对我来说是个问题。我如何告诉coreutils软件包仅在映像上安装“ join”并忽略所有其他coreutils数据?

recipe gnu-coreutils busybox bitbake yocto

3
推荐指数
1
解决办法
2488
查看次数

标签 统计

bitbake ×2

yocto ×2

alsa ×1

boost ×1

busybox ×1

gnu-coreutils ×1

recipe ×1