diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-04-14 13:51:45 +0200 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2023-05-07 12:23:00 -0400 |
commit | 3db9f65bbdcaba29f9a02c61a0791796fe646f4b (patch) | |
tree | b24d60ff3fc76266b01b10aae06316ead8172a35 | |
parent | 9efc3193ec2db7e68f7a17f758fe3f48b1cd14fa (diff) | |
download | meta-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.bb | 6 |
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" | |||
15 | PACKAGECONFIG[tests] = "--enable-tests --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit" | 15 | PACKAGECONFIG[tests] = "--enable-tests --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit" |
16 | PACKAGECONFIG[gpioset-interactive] = "--enable-gpioset-interactive,--disable-gpioset-interactive,libedit" | 16 | PACKAGECONFIG[gpioset-interactive] = "--enable-gpioset-interactive,--disable-gpioset-interactive,libedit" |
17 | 17 | ||
18 | PACKAGES =+ "${PN}-ptest-dev" | ||
18 | FILES:${PN}-tools += "${bindir}/gpionotify" | 19 | FILES:${PN}-tools += "${bindir}/gpionotify" |
19 | FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*" | 20 | FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*" |
21 | FILES:${PN}-ptest-dev += "${includedir}/gpiosim.h" | ||
20 | 22 | ||
21 | RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim" | 23 | RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim" |
24 | |||
25 | do_install_ptest:append() { | ||
26 | install -m 0644 ${S}/tests/gpiosim/gpiosim.h ${D}${includedir}/gpiosim.h | ||
27 | } | ||