diff options
author | Martin Hundebøll <mnhu@prevas.dk> | 2018-01-26 13:35:58 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-03-12 10:02:03 -0700 |
commit | 5fe43eb489adc6431ac6be91deb944f627cb64e2 (patch) | |
tree | 35ea2f6a06b6bbde12a4f799f17ca197f99d801c /meta-oe | |
parent | 790ddac5a9f2d4a40012551eb3b7a0743c2975e6 (diff) | |
download | meta-openembedded-5fe43eb489adc6431ac6be91deb944f627cb64e2.tar.gz |
libgpiod: fix packaging of tools
The default packaging adds files from ${bindir} to the primary package,
so that following packages don't see any files in ${bindir}. This causes
the libgpiod-tools package to empty, as it is appended (+=) to PACKAGES.
Change the assignment to PACKAGES to a prepend (=+) to populate the
libgpiod-tools package with the gpio{detect,find,get,info,mon,set}
executables.
To avoid missing tools for existing installations of libgpiod, the
libgpiod-tools package is setup as a recommendation by libgpiod when the
tools package config is enabled.
Signed-off-by: Martin Hundebøll <mnhu@prevas.dk>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-support/libgpiod/libgpiod.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.bb b/meta-oe/recipes-support/libgpiod/libgpiod.bb index 6aa27ad57..b2e3bae69 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod.bb +++ b/meta-oe/recipes-support/libgpiod/libgpiod.bb | |||
@@ -18,6 +18,9 @@ PACKAGECONFIG ?= "tools" | |||
18 | PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev" | 18 | PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev" |
19 | PACKAGECONFIG[tools] = "--enable-tools,--disable-tools," | 19 | PACKAGECONFIG[tools] = "--enable-tools,--disable-tools," |
20 | 20 | ||
21 | PACKAGES += " ${PN}-tools" | 21 | PACKAGES =+ " ${PN}-tools" |
22 | 22 | ||
23 | FILES_${PN}-tools = "${bindir}/*" | 23 | FILES_${PN}-tools = "${bindir}/*" |
24 | |||
25 | RRECOMMENDS_TOOLS = "${@bb.utils.contains('PACKAGECONFIG', 'tools', '${PN}-tools', '',d)}" | ||
26 | RRECOMMENDS_${PN} += "${RRECOMMENDS_TOOLS}" | ||