* [meta-oe][PATCH] libgpiod: Detect ptest using PTEST_ENABLED
@ 2022-08-11 10:30 Alex Kiernan
0 siblings, 0 replies; only message in thread
From: Alex Kiernan @ 2022-08-11 10:30 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alex Kiernan
Allow the ptest packages to be disabled even if ptest is enabled in
DISTRO_FEATURES.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
---
meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb | 5 ++---
1 file changed, 2 insertions(+), 3 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 2cccf93bd5fb..3e6e5d567d03 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
+++ b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
@@ -19,7 +19,8 @@ PACKAGECONFIG[cxx] = "--enable-bindings-cxx,--disable-bindings-cxx"
PACKAGECONFIG[python3] = "--enable-bindings-python,--disable-bindings-python,python3"
# Enable cxx bindings by default.
-PACKAGECONFIG ?= "cxx"
+PACKAGECONFIG ?= "cxx \
+ ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
# Always build tools - they don't have any additional
# requirements over the library.
@@ -56,8 +57,6 @@ RRECOMMENDS:${PN}-ptest += " \
"
RDEPENDS:${PN}-ptest += "bats python3-packaging"
-PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}"
-
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
--
2.35.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-11 10:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11 10:30 [meta-oe][PATCH] libgpiod: Detect ptest using PTEST_ENABLED Alex Kiernan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.