diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2022-08-11 11:30:37 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-08-12 01:24:27 -0700 |
commit | 62fd541101c104dd41c918fb21d0ab63222c672f (patch) | |
tree | aa26800b3287b83a29988b37742f24a199b3a7d9 /meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb | |
parent | bf4a826c7de51dcdac87f81fa2bd2301629d50db (diff) | |
download | meta-openembedded-62fd541101c104dd41c918fb21d0ab63222c672f.tar.gz |
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 <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb')
-rw-r--r-- | meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb | 5 |
1 files 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 2cccf93bd..3e6e5d567 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" | |||
19 | PACKAGECONFIG[python3] = "--enable-bindings-python,--disable-bindings-python,python3" | 19 | PACKAGECONFIG[python3] = "--enable-bindings-python,--disable-bindings-python,python3" |
20 | 20 | ||
21 | # Enable cxx bindings by default. | 21 | # Enable cxx bindings by default. |
22 | PACKAGECONFIG ?= "cxx" | 22 | PACKAGECONFIG ?= "cxx \ |
23 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" | ||
23 | 24 | ||
24 | # Always build tools - they don't have any additional | 25 | # Always build tools - they don't have any additional |
25 | # requirements over the library. | 26 | # requirements over the library. |
@@ -56,8 +57,6 @@ RRECOMMENDS:${PN}-ptest += " \ | |||
56 | " | 57 | " |
57 | RDEPENDS:${PN}-ptest += "bats python3-packaging" | 58 | RDEPENDS:${PN}-ptest += "bats python3-packaging" |
58 | 59 | ||
59 | PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}" | ||
60 | |||
61 | do_install_ptest() { | 60 | do_install_ptest() { |
62 | install -d ${D}${PTEST_PATH}/tests | 61 | install -d ${D}${PTEST_PATH}/tests |
63 | 62 | ||