mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
libgpiod: put gpio utils into an actual separate package
Currently tools are built conditionally depending on whether the corresponding PACKAGECONFIG option has been set and, although they live in a separate libgpiod-tools package, the user cannot simply select it - he has to additionally extend PACKAGECONFIG. While this makes sense for python and C++ bindings, the tools don't have any dependencies other the libgpiod. Make libgpiod-tools an actual stand-alone package: always build them but install them only if user selected libgpiod-tools. Disable setting tools in default PACKAGECONFIGS Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> s
This commit is contained in:
committed by
Khem Raj
parent
599304fb37
commit
4339c28ff4
@@ -8,11 +8,9 @@ SRC_URI = "https://www.kernel.org/pub/software/libs/libgpiod/${BP}.tar.xz"
|
||||
inherit autotools pkgconfig
|
||||
|
||||
PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
|
||||
PACKAGECONFIG[tools] = "--enable-tools,--disable-tools,"
|
||||
|
||||
EXTRA_OECONF = "--enable-tools"
|
||||
|
||||
PACKAGES =+ " ${PN}-tools"
|
||||
|
||||
FILES_${PN}-tools = "${bindir}/*"
|
||||
|
||||
RRECOMMENDS_TOOLS = "${@bb.utils.contains('PACKAGECONFIG', 'tools', '${PN}-tools', '',d)}"
|
||||
RRECOMMENDS_${PN} += "${RRECOMMENDS_TOOLS}"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
require libgpiod.inc
|
||||
|
||||
# enable tools
|
||||
PACKAGECONFIG ?= "tools"
|
||||
PACKAGECONFIG ?= ""
|
||||
|
||||
PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ DEPENDS += "autoconf-archive-native"
|
||||
SRC_URI[md5sum] = "585b4bb431f99c4ba9b3ee58b9d494c1"
|
||||
SRC_URI[sha256sum] = "21ae8fd1f8dafc2eb2ba50e652390cf533d21351419a7426255895cb52e21b1c"
|
||||
|
||||
# enable tools and cxx bindings
|
||||
PACKAGECONFIG ?= "cxx tools"
|
||||
# enable cxx bindings
|
||||
PACKAGECONFIG ?= "cxx"
|
||||
|
||||
PACKAGECONFIG[cxx] = "--enable-bindings-cxx,--disable-bindings-cxx"
|
||||
PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
|
||||
|
||||
Reference in New Issue
Block a user