From: Bartosz Golaszewski <[email protected]> This header is used for building tests. While libgpiod can access it from the source tree, the python bindings that live in a separate recipe must be able to use it from its recipe sysroot.
Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Khem Raj <[email protected]> (cherry picked from commit 62cd19e3f4b971483d6250c9ca64be12758e89f8) Signed-off-by: Armin Kuster <[email protected]> --- meta-oe/recipes-support/libgpiod/libgpiod_2.0.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_2.0.bb b/meta-oe/recipes-support/libgpiod/libgpiod_2.0.bb index becc9adb29..179fe170e2 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod_2.0.bb +++ b/meta-oe/recipes-support/libgpiod/libgpiod_2.0.bb @@ -15,7 +15,13 @@ S = "${WORKDIR}/libgpiod-2.0" PACKAGECONFIG[tests] = "--enable-tests --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit" PACKAGECONFIG[gpioset-interactive] = "--enable-gpioset-interactive,--disable-gpioset-interactive,libedit" +PACKAGES =+ "${PN}-ptest-dev" FILES:${PN}-tools += "${bindir}/gpionotify" FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*" +FILES:${PN}-ptest-dev += "${includedir}/gpiosim.h" RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim" + +do_install_ptest:append() { + install -m 0644 ${S}/tests/gpiosim/gpiosim.h ${D}${includedir}/gpiosim.h +} -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102335): https://lists.openembedded.org/g/openembedded-devel/message/102335 Mute This Topic: https://lists.openembedded.org/mt/98744027/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
