summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-04-14 13:51:45 +0200
committerKhem Raj <raj.khem@gmail.com>2023-04-14 08:45:14 -0700
commit62cd19e3f4b971483d6250c9ca64be12758e89f8 (patch)
treecd326977f4f9d20b30031e71b3d180bdc6456a5f
parentce5cf625cdfc0adbffa344de7c59274cb89f5612 (diff)
downloadmeta-openembedded-62cd19e3f4b971483d6250c9ca64be12758e89f8.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>
-rw-r--r--meta-oe/recipes-support/libgpiod/libgpiod_2.0.1.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_2.0.1.bb b/meta-oe/recipes-support/libgpiod/libgpiod_2.0.1.bb
index 50b9203a75..337554cd89 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod_2.0.1.bb
+++ b/meta-oe/recipes-support/libgpiod/libgpiod_2.0.1.bb
@@ -15,7 +15,13 @@ SRC_URI[sha256sum] = "b5367d28d045b36007a4ffd42cceda4c358737ef4f2ce22b0c1d05ec57
15PACKAGECONFIG[tests] = "--enable-tests --enable-tools --enable-bindings-cxx --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit" 15PACKAGECONFIG[tests] = "--enable-tests --enable-tools --enable-bindings-cxx --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}