mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user