Including specific header files in the yocto assembly

I am trying to include certain header files in the yocto assembly that are in the dev packages. The packages are boost and alsa.

I have included bitback recipe files in my image recipe, which is bbappend of the main recipe (console-trdx-image.bb) as IMAGE_INSTALL + = and cut out the image.

When I look in my working directory of work, in packages for alsa and raise all the files, they are resident, where I want them to be - usr / include / alsa as an example.

It is difficult for me to get the built-in / installed package material in the root files of the image itself.

My.bbappend for alsa is as follows:

    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"

When I look in / usr / include in the rootfs of the created image, there is nothing there. Not a sausage.

Any ideas why?

Thanks!

+4
1

-, bbappend, .

bitbake alsa-lib, ( ): $ ls tmp-glibc/work/i586-oe-linux/alsa-lib/1.0.29-r0/packages-split/alsa-lib-dev/usr/include/ alsa sys alsa alsa.

rootfs, ( ). alsa-lib , alsa-lib-dev . IMAGE_INSTALL += "alsa-lib-dev" . IMAGE_INSTALL_append = " alsa-lib-dev" local.conf. _append .

rootfs.

+3

Source: https://habr.com/ru/post/1609266/


All Articles