diff options
| author | Bartosz Golaszewski <brgl@bgdev.pl> | 2021-11-19 13:29:13 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-11-19 08:37:31 -0800 |
| commit | 97771cd2f40939207b2b5ef9958d8208562d3fe8 (patch) | |
| tree | 9888fc98be8006d831e4822524c20042ba85b2e5 | |
| parent | af758fe2d84bc74f8ed873c10a80ebee07e2d2f8 (diff) | |
| download | meta-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>
| -rw-r--r-- | meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb | 5 |
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 ac4ba85d77..4747846468 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" | |||
| 49 | FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a" | 49 | FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a" |
| 50 | 50 | ||
| 51 | RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '', d)}" | 51 | RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '', d)}" |
| 52 | RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-mockup" | 52 | RRECOMMENDS:${PN}-ptest += " \ |
| 53 | kernel-module-gpio-mockup \ | ||
| 54 | ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-unittest', '', d)} \ | ||
| 55 | " | ||
| 53 | 56 | ||
| 54 | PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}" | 57 | PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}" |
| 55 | 58 | ||
