From 62fd541101c104dd41c918fb21d0ab63222c672f Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Thu, 11 Aug 2022 11:30:37 +0100 Subject: [PATCH] libgpiod: Detect ptest using PTEST_ENABLED Allow the ptest packages to be disabled even if ptest is enabled in DISTRO_FEATURES. Signed-off-by: Alex Kiernan Signed-off-by: Khem Raj --- 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 2cccf93bd5..3e6e5d567d 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