summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2021-11-19 13:29:13 +0100
committerKhem Raj <raj.khem@gmail.com>2021-11-19 08:37:31 -0800
commit97771cd2f40939207b2b5ef9958d8208562d3fe8 (patch)
tree9888fc98be8006d831e4822524c20042ba85b2e5 /meta-oe
parentaf758fe2d84bc74f8ed873c10a80ebee07e2d2f8 (diff)
downloadmeta-openembedded-97771cd2f40939207b2b5ef9958d8208562d3fe8.tar.gz
libgpiod: ptest: rrecommend python3-unittest when building python tests
The python test suite uses the unittest module. It's not built by default in minimal images, so we need to add it RRECOMMENDS explicitly. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
index ac4ba85d7..474784646 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
+++ b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
@@ -49,7 +49,10 @@ FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*.so"
49FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a" 49FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a"
50 50
51RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '', d)}" 51RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '', d)}"
52RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-mockup" 52RRECOMMENDS:${PN}-ptest += " \
53 kernel-module-gpio-mockup \
54 ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-unittest', '', d)} \
55"
53 56
54PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}" 57PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}"
55 58