mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/libgpiod2: bump to version 2.3.1
- buildsystem changed from autotools to meson - add option to install dbus-server and client changelog: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/tree/NEWS?h=v2.3.1 Signed-off-by: Michael Nosthoff <buildroot@heine.tech> [Julien: - propagate libgudev dependencies on dbus option - add Config.in comments for dbus option ] Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
cd9f9b47d7
commit
1d132d04fc
@@ -16,6 +16,24 @@ config BR2_PACKAGE_LIBGPIOD2
|
|||||||
|
|
||||||
if BR2_PACKAGE_LIBGPIOD2
|
if BR2_PACKAGE_LIBGPIOD2
|
||||||
|
|
||||||
|
config BR2_PACKAGE_LIBGPIOD2_DBUS
|
||||||
|
bool "install dbus-server and client"
|
||||||
|
depends on BR2_PACKAGE_HAS_UDEV # libgudev
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_THREADS # libgudev
|
||||||
|
depends on BR2_USE_MMU # libgudev
|
||||||
|
depends on BR2_USE_WCHAR # libgudev
|
||||||
|
select BR2_PACKAGE_LIBGUDEV
|
||||||
|
help
|
||||||
|
Include dbus-server and client for managing GPIOs.
|
||||||
|
|
||||||
|
comment "libgpiod2 dbus needs udev /dev management"
|
||||||
|
depends on BR2_USE_MMU
|
||||||
|
depends on !BR2_PACKAGE_HAS_UDEV
|
||||||
|
|
||||||
|
comment "libgpiod2 dbus needs a toolchain w/ threads, wchar"
|
||||||
|
depends on BR2_USE_MMU
|
||||||
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
|
||||||
|
|
||||||
config BR2_PACKAGE_LIBGPIOD2_TOOLS
|
config BR2_PACKAGE_LIBGPIOD2_TOOLS
|
||||||
bool "install tools"
|
bool "install tools"
|
||||||
help
|
help
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# From https://www.kernel.org/pub/software/libs/libgpiod/sha256sums.asc
|
# From https://www.kernel.org/pub/software/libs/libgpiod/sha256sums.asc
|
||||||
sha256 13207176b0eb9b3e0f02552d5f49f5a6a449343ce47416158bb484d9d3019592 libgpiod-2.2.4.tar.xz
|
sha256 e3a358a90a9204ff16f92b6f4028ed91460b1926f10589eb54b3566484650a30 libgpiod-2.3.1.tar.xz
|
||||||
# Hash for license file
|
# Hash for license file
|
||||||
sha256 f646ad5159efb51c1130a4b43c31f0759750b1e254d2acf510f368ee2e2085c3 COPYING
|
sha256 f646ad5159efb51c1130a4b43c31f0759750b1e254d2acf510f368ee2e2085c3 COPYING
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
# Be careful when bumping versions.
|
# Be careful when bumping versions.
|
||||||
# Dependency on kernel header versions may change.
|
# Dependency on kernel header versions may change.
|
||||||
LIBGPIOD2_VERSION = 2.2.4
|
LIBGPIOD2_VERSION = 2.3.1
|
||||||
LIBGPIOD2_SOURCE = libgpiod-$(LIBGPIOD2_VERSION).tar.xz
|
LIBGPIOD2_SOURCE = libgpiod-$(LIBGPIOD2_VERSION).tar.xz
|
||||||
LIBGPIOD2_SITE = https://www.kernel.org/pub/software/libs/libgpiod
|
LIBGPIOD2_SITE = https://www.kernel.org/pub/software/libs/libgpiod
|
||||||
LIBGPIOD2_LICENSE = LGPL-2.1+
|
LIBGPIOD2_LICENSE = LGPL-2.1+
|
||||||
@@ -14,27 +14,34 @@ LIBGPIOD2_LICENSE_FILES = COPYING
|
|||||||
LIBGPIOD2_INSTALL_STAGING = YES
|
LIBGPIOD2_INSTALL_STAGING = YES
|
||||||
LIBGPIOD2_DEPENDENCIES = host-pkgconf
|
LIBGPIOD2_DEPENDENCIES = host-pkgconf
|
||||||
LIBGPIOD2_CONF_OPTS = \
|
LIBGPIOD2_CONF_OPTS = \
|
||||||
--disable-bindings-python \
|
-Dbindings-python=disabled \
|
||||||
--disable-examples \
|
-Dexamples=disabled \
|
||||||
--disable-tests
|
-Dtests=disabled
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBGPIOD2_DBUS),y)
|
||||||
|
LIBGPIOD2_CONF_OPTS += -Ddbus=enabled
|
||||||
|
LIBGPIOD2_DEPENDENCIES += libgudev
|
||||||
|
else
|
||||||
|
LIBGPIOD2_CONF_OPTS += -Ddbus=disabled
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBGPIOD2_TOOLS),y)
|
ifeq ($(BR2_PACKAGE_LIBGPIOD2_TOOLS),y)
|
||||||
LIBGPIOD2_CONF_OPTS += --enable-tools
|
LIBGPIOD2_CONF_OPTS += -Dtools=enabled
|
||||||
else
|
else
|
||||||
LIBGPIOD2_CONF_OPTS += --disable-tools
|
LIBGPIOD2_CONF_OPTS += -Dtools=disabled
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
||||||
LIBGPIOD2_DEPENDENCIES += libedit
|
LIBGPIOD2_DEPENDENCIES += libedit
|
||||||
LIBGPIOD2_CONF_OPTS += --enable-gpioset-interactive
|
LIBGPIOD2_CONF_OPTS += -Dgpioset-interactive=enabled
|
||||||
else
|
else
|
||||||
LIBGPIOD2_CONF_OPTS += --disable-gpioset-interactive
|
LIBGPIOD2_CONF_OPTS += -Dgpioset-interactive=disabled
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||||
LIBGPIOD2_CONF_OPTS += --enable-bindings-cxx
|
LIBGPIOD2_CONF_OPTS += -Dbindings-cxx=enabled
|
||||||
else
|
else
|
||||||
LIBGPIOD2_CONF_OPTS += --disable-bindings-cxx
|
LIBGPIOD2_CONF_OPTS += -Dbindings-cxx=disabled
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(meson-package))
|
||||||
|
|||||||
Reference in New Issue
Block a user