diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-11-03 21:04:06 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-11-03 15:07:16 -0700 |
| commit | 44bb7f130f21833155b95c0d1280e5fa397c097c (patch) | |
| tree | e827c61e081191191ba8cfe97a6f7940a3ab7075 | |
| parent | 7e1bcd83fa7b9c004f6e19202807225f65289902 (diff) | |
| download | meta-openembedded-44bb7f130f21833155b95c0d1280e5fa397c097c.tar.gz | |
libgpiod: update to v2.1
This is a small release bringing in a bunch of improvements and a couple
new interfaces. Details are available in NEWS.
We need to move the code in recipes around a bit as the tests now use
shunit2.
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.x/run-ptest | 2 | ||||
| -rw-r--r-- | meta-oe/recipes-support/libgpiod/libgpiod.inc | 3 | ||||
| -rw-r--r-- | meta-oe/recipes-support/libgpiod/libgpiod_1.6.4.bb | 8 | ||||
| -rw-r--r-- | meta-oe/recipes-support/libgpiod/libgpiod_2.1.bb (renamed from meta-oe/recipes-support/libgpiod/libgpiod_2.0.2.bb) | 7 |
4 files changed, 14 insertions, 6 deletions
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest b/meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest index 9475f02535..29ec0d1027 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest +++ b/meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | testbins="gpiod-test gpio-tools-test gpiod-cxx-test" | 3 | testbins="gpiod-test gpio-tools-test.bash gpiod-cxx-test" |
| 4 | 4 | ||
| 5 | ptestdir=$(dirname "$(readlink -f "$0")") | 5 | ptestdir=$(dirname "$(readlink -f "$0")") |
| 6 | cd $ptestdir/tests | 6 | cd $ptestdir/tests |
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.inc b/meta-oe/recipes-support/libgpiod/libgpiod.inc index 0eda47bba0..dc1fb4fe92 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod.inc +++ b/meta-oe/recipes-support/libgpiod/libgpiod.inc | |||
| @@ -33,7 +33,6 @@ FILES:${PN}-tools += " \ | |||
| 33 | FILES:libgpiodcxx = "${libdir}/libgpiodcxx.so.*" | 33 | FILES:libgpiodcxx = "${libdir}/libgpiodcxx.so.*" |
| 34 | 34 | ||
| 35 | RRECOMMENDS:${PN}-ptest += "coreutils" | 35 | RRECOMMENDS:${PN}-ptest += "coreutils" |
| 36 | RDEPENDS:${PN}-ptest += "${@bb.utils.contains('PTEST_ENABLED', '1', 'bats', '', d)}" | ||
| 37 | 36 | ||
| 38 | do_install:append() { | 37 | do_install:append() { |
| 39 | rm -f ${D}${bindir}/gpiod-test | 38 | rm -f ${D}${bindir}/gpiod-test |
| @@ -50,8 +49,6 @@ do_install_ptest() { | |||
| 50 | 49 | ||
| 51 | # Tools are always built so let's always install them for ptest even if | 50 | # Tools are always built so let's always install them for ptest even if |
| 52 | # we're not selecting libgpiod-tools. | 51 | # we're not selecting libgpiod-tools. |
| 53 | install -m 0755 ${S}/tools/gpio-tools-test ${D}${PTEST_PATH}/tests/ | ||
| 54 | install -m 0755 ${S}/tools/gpio-tools-test.bats ${D}${PTEST_PATH}/tests/ | ||
| 55 | for tool in ${FILES:${PN}-tools}; do | 52 | for tool in ${FILES:${PN}-tools}; do |
| 56 | install ${B}/tools/.libs/$(basename $tool) ${D}${PTEST_PATH}/tests/ | 53 | install ${B}/tools/.libs/$(basename $tool) ${D}${PTEST_PATH}/tests/ |
| 57 | done | 54 | done |
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.4.bb b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.4.bb index b28aa8e698..111a5727ba 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.4.bb +++ b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.4.bb | |||
| @@ -30,9 +30,15 @@ RRECOMMENDS:${PN}-ptest += " \ | |||
| 30 | kernel-module-gpio-mockup \ | 30 | kernel-module-gpio-mockup \ |
| 31 | ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-unittest', '', d)} \ | 31 | ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-unittest', '', d)} \ |
| 32 | " | 32 | " |
| 33 | RDEPENDS:${PN}-ptest += "python3-packaging" | 33 | RDEPENDS:${PN}-ptest += " \ |
| 34 | python3-packaging \ | ||
| 35 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'bats', '', d)} \ | ||
| 36 | " | ||
| 34 | 37 | ||
| 35 | do_install_ptest:append() { | 38 | do_install_ptest:append() { |
| 39 | install -m 0755 ${S}/tools/gpio-tools-test ${D}${PTEST_PATH}/tests/ | ||
| 40 | install -m 0755 ${S}/tools/gpio-tools-test.bats ${D}${PTEST_PATH}/tests/ | ||
| 41 | |||
| 36 | if ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'true', 'false', d)}; then | 42 | if ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'true', 'false', d)}; then |
| 37 | install -m 0755 ${S}/bindings/python/tests/gpiod_py_test.py ${D}${PTEST_PATH}/tests/ | 43 | install -m 0755 ${S}/bindings/python/tests/gpiod_py_test.py ${D}${PTEST_PATH}/tests/ |
| 38 | fi | 44 | fi |
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_2.0.2.bb b/meta-oe/recipes-support/libgpiod/libgpiod_2.1.bb index 7533e0a258..1e92d00790 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod_2.0.2.bb +++ b/meta-oe/recipes-support/libgpiod/libgpiod_2.1.bb | |||
| @@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = " \ | |||
| 9 | 9 | ||
| 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:" | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:" |
| 11 | 11 | ||
| 12 | SRC_URI[sha256sum] = "c3c923dc63b7b1b02639c9179c81e3d9febf0887bbaa59775990229cdbedb88b" | 12 | SRC_URI[sha256sum] = "fa4024a080121c958502f9a46a5bda44bea85e7a4dd7fcb3dead463b6fc4261c" |
| 13 | 13 | ||
| 14 | # Enable all project features for ptest | 14 | # Enable all project features for ptest |
| 15 | PACKAGECONFIG[tests] = "--enable-tests --enable-tools --enable-bindings-cxx --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit" | 15 | PACKAGECONFIG[tests] = "--enable-tests --enable-tools --enable-bindings-cxx --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit" |
| @@ -20,8 +20,13 @@ FILES:${PN}-tools += "${bindir}/gpionotify" | |||
| 20 | FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*" | 20 | FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*" |
| 21 | FILES:${PN}-ptest-dev += "${includedir}/gpiosim.h" | 21 | FILES:${PN}-ptest-dev += "${includedir}/gpiosim.h" |
| 22 | 22 | ||
| 23 | RDEPENDS:${PN}-ptest += " \ | ||
| 24 | bash \ | ||
| 25 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'shunit2', '', d)} \ | ||
| 26 | " | ||
| 23 | RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim" | 27 | RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim" |
| 24 | 28 | ||
| 25 | do_install_ptest:append() { | 29 | do_install_ptest:append() { |
| 30 | install -m 0755 ${S}/tools/gpio-tools-test.bash ${D}${PTEST_PATH}/tests/ | ||
| 26 | install -m 0644 ${S}/tests/gpiosim/gpiosim.h ${D}${includedir}/gpiosim.h | 31 | install -m 0644 ${S}/tests/gpiosim/gpiosim.h ${D}${includedir}/gpiosim.h |
| 27 | } | 32 | } |
