diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-04-20 13:36:34 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-04-20 07:46:21 -0700 |
| commit | afbc2234898088311c38d78997f63992e38aa08a (patch) | |
| tree | 0fb66aff2fa15cd5025cfdb3f2d1fcc6dac1dabb | |
| parent | 2e0615b1d3776f56706eaf3482d05211dac32607 (diff) | |
| download | meta-openembedded-afbc2234898088311c38d78997f63992e38aa08a.tar.gz | |
libgpiod: remove test executables from ${bindir}
There's no need to put the test executables into ${bindir} as they're
already installed into ${PTEST_PATH}. This just pollutes $PATH.
Future libgpiod releases will not install test binaries at all, leaving
it to the library users. For now: remove them manually after
installation.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/libgpiod/libgpiod.inc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.inc b/meta-oe/recipes-support/libgpiod/libgpiod.inc index 53f9ec49c6..0329caafdf 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod.inc +++ b/meta-oe/recipes-support/libgpiod/libgpiod.inc | |||
| @@ -30,17 +30,18 @@ FILES:${PN}-tools += " \ | |||
| 30 | ${bindir}/gpioset \ | 30 | ${bindir}/gpioset \ |
| 31 | ${bindir}/gpiomon \ | 31 | ${bindir}/gpiomon \ |
| 32 | " | 32 | " |
| 33 | FILES:${PN}-ptest += " \ | ||
| 34 | ${bindir}/gpiod-test \ | ||
| 35 | ${bindir}/gpio-tools-test \ | ||
| 36 | ${bindir}/gpio-tools-test.bats \ | ||
| 37 | ${bindir}/gpiod-cxx-test \ | ||
| 38 | " | ||
| 39 | FILES:libgpiodcxx = "${libdir}/libgpiodcxx.so.*" | 33 | FILES:libgpiodcxx = "${libdir}/libgpiodcxx.so.*" |
| 40 | 34 | ||
| 41 | RRECOMMENDS:${PN}-ptest += "coreutils" | 35 | RRECOMMENDS:${PN}-ptest += "coreutils" |
| 42 | RDEPENDS:${PN}-ptest += "bats" | 36 | RDEPENDS:${PN}-ptest += "bats" |
| 43 | 37 | ||
| 38 | do_install:append() { | ||
| 39 | rm -f ${D}${bindir}/gpiod-test | ||
| 40 | rm -f ${D}${bindir}/gpio-tools-test | ||
| 41 | rm -f ${D}${bindir}/gpio-tools-test.bats | ||
| 42 | rm -f ${D}${bindir}/gpiod-cxx-test | ||
| 43 | } | ||
| 44 | |||
| 44 | do_install_ptest() { | 45 | do_install_ptest() { |
| 45 | install -d ${D}${PTEST_PATH}/tests/ | 46 | install -d ${D}${PTEST_PATH}/tests/ |
| 46 | 47 | ||
