summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libgpiod
diff options
context:
space:
mode:
authorJoe Slater <joe.slater@windriver.com>2023-07-12 14:43:36 -0700
committerKhem Raj <raj.khem@gmail.com>2023-07-13 07:22:17 -0700
commit9904bd6a24ed9327bd05926ba28f9c2ea49e34dd (patch)
tree8d1d6162f18d3d2be5fd425f2418aa295dde8bfe /meta-oe/recipes-support/libgpiod
parente3606c223e8195dc57a41c64ca670958f1809d6f (diff)
downloadmeta-openembedded-9904bd6a24ed9327bd05926ba28f9c2ea49e34dd.tar.gz
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>
Diffstat (limited to 'meta-oe/recipes-support/libgpiod')
-rw-r--r--meta-oe/recipes-support/libgpiod/libgpiod.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.inc b/meta-oe/recipes-support/libgpiod/libgpiod.inc
index a2d1f57a8..cb19bc5fb 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod.inc
+++ b/meta-oe/recipes-support/libgpiod/libgpiod.inc
@@ -34,7 +34,7 @@ FILES:${PN}-tools += " \
34FILES:libgpiodcxx = "${libdir}/libgpiodcxx.so.*" 34FILES:libgpiodcxx = "${libdir}/libgpiodcxx.so.*"
35 35
36RRECOMMENDS:${PN}-ptest += "coreutils" 36RRECOMMENDS:${PN}-ptest += "coreutils"
37RDEPENDS:${PN}-ptest += "bats" 37RDEPENDS:${PN}-ptest += "${@bb.utils.contains('PTEST_ENABLED', '1', 'bats', '', d)}"
38 38
39do_install:append() { 39do_install:append() {
40 rm -f ${D}${bindir}/gpiod-test 40 rm -f ${D}${bindir}/gpiod-test