mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
libgpiod: modify RDEPENDS for ptest
The current use of RDEPENDS to add a dependency on bats results in the QA warning/error lib32-libgpiod package lib32-libgpiod-ptest-dev - suspicious values 'bats-dev' in RRECOMMENDS [multilib] when building lib32-libgpiod with ptest not enabled. We add the dependency only if ptest is enabled. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -34,7 +34,7 @@ FILES:${PN}-tools += " \
|
||||
FILES:libgpiodcxx = "${libdir}/libgpiodcxx.so.*"
|
||||
|
||||
RRECOMMENDS:${PN}-ptest += "coreutils"
|
||||
RDEPENDS:${PN}-ptest += "bats"
|
||||
RDEPENDS:${PN}-ptest += "${@bb.utils.contains('PTEST_ENABLED', '1', 'bats', '', d)}"
|
||||
|
||||
do_install:append() {
|
||||
rm -f ${D}${bindir}/gpiod-test
|
||||
|
||||
Reference in New Issue
Block a user