summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-04-14 13:51:45 +0200
committerArmin Kuster <akuster808@gmail.com>2023-05-07 12:23:00 -0400
commit3db9f65bbdcaba29f9a02c61a0791796fe646f4b (patch)
treeb24d60ff3fc76266b01b10aae06316ead8172a35
parent9efc3193ec2db7e68f7a17f758fe3f48b1cd14fa (diff)
downloadmeta-openembedded-3db9f65bbdcaba29f9a02c61a0791796fe646f4b.tar.gz
libgpiod: install the libgpiosim header
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 <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 62cd19e3f4b971483d6250c9ca64be12758e89f8) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-oe/recipes-support/libgpiod/libgpiod_2.0.bb6
1 files changed, 6 insertions, 0 deletions
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"
15PACKAGECONFIG[tests] = "--enable-tests --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit" 15PACKAGECONFIG[tests] = "--enable-tests --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit"
16PACKAGECONFIG[gpioset-interactive] = "--enable-gpioset-interactive,--disable-gpioset-interactive,libedit" 16PACKAGECONFIG[gpioset-interactive] = "--enable-gpioset-interactive,--disable-gpioset-interactive,libedit"
17 17
18PACKAGES =+ "${PN}-ptest-dev"
18FILES:${PN}-tools += "${bindir}/gpionotify" 19FILES:${PN}-tools += "${bindir}/gpionotify"
19FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*" 20FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*"
21FILES:${PN}-ptest-dev += "${includedir}/gpiosim.h"
20 22
21RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim" 23RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim"
24
25do_install_ptest:append() {
26 install -m 0644 ${S}/tests/gpiosim/gpiosim.h ${D}${includedir}/gpiosim.h
27}