From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 22 Nov 2024 12:01:38 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tERPu-004zZ3-2B for lore@lore.pengutronix.de; Fri, 22 Nov 2024 12:01:38 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tERPu-0004H7-85; Fri, 22 Nov 2024 12:01:38 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tERPP-0003qg-4V; Fri, 22 Nov 2024 12:01:07 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tERPO-0023ki-2Y; Fri, 22 Nov 2024 12:01:06 +0100 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tERPO-00D19B-2P; Fri, 22 Nov 2024 12:01:06 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 22 Nov 2024 12:01:06 +0100 Message-Id: <20241122110106.3102666-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240926132653.686058-1-m.heidelberg@cab.de> References: <20240926132653.686058-1-m.heidelberg@cab.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] libgpiod: version bump 1.6.3 -> 2.1.3 X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Markus Heidelberg Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 8e8ae72833d488cbdcb7c1cb8bc78038951e1636. Michael [sent from post-receive hook] On Fri, 22 Nov 2024 12:01:06 +0100, Markus Heidelberg wrote: > The backwards-incompatible v2 series uses GPIO character device uAPI v2 > introduced in Linux 5.10, option CONFIG_GPIO_CDEV_V1 not needed anymore. > > The gpiofind tool has been dropped upstream, gpionotify added. > Both gpiomon (since v0.3 already) and the new gpionotify can be used on > multiple GPIO lines, so adapt the Kconfig help text. > > Since the kernel uapi header gpio.h is included in the sources now, > there is no need for a specific minimum version of the kernel headers > anymore, so remove those comments. > > Signed-off-by: Markus Heidelberg > Message-Id: <20240926132653.686058-1-m.heidelberg@cab.de> > [mol: stop using external kernel headers, they are not needed any more] > Signed-off-by: Michael Olbrich > > diff --git a/rules/libgpiod.in b/rules/libgpiod.in > index 14c38dddce5d..94bff516477d 100644 > --- a/rules/libgpiod.in > +++ b/rules/libgpiod.in > @@ -9,7 +9,6 @@ menuconfig LIBGPIOD > help > libgpiod is a library accompanied by a set of tools for > interacting with the Linux GPIO character device. > - Requires kernel-headers >= 4.8. > > if LIBGPIOD > > @@ -44,19 +43,19 @@ config LIBGPIOD_GPIOSET > help > Sets values of specified GPIO lines > > -config LIBGPIOD_GPIOFIND > +config LIBGPIOD_GPIOMON > bool > - prompt "Install gpiofind" > + prompt "Install gpiomon" > select LIBGPIOD_TOOLS > help > - Finds the gpiochip given the line name > + Waits for events on GPIO lines > > -config LIBGPIOD_GPIOMON > +config LIBGPIOD_GPIONOTIFY > bool > - prompt "Install gpiomon" > + prompt "Install gpionotify" > select LIBGPIOD_TOOLS > help > - Waits for events on a GPIO line > + Waits for info changes on GPIO lines > > config LIBGPIOD_CXX > bool > diff --git a/rules/libgpiod.make b/rules/libgpiod.make > index 937057cd750b..a77acf146127 100644 > --- a/rules/libgpiod.make > +++ b/rules/libgpiod.make > @@ -14,17 +14,24 @@ PACKAGES-$(PTXCONF_LIBGPIOD) += libgpiod > # > # Paths and names > # > -LIBGPIOD_VERSION := 1.6.3 > -LIBGPIOD_MD5 := 25b6d8e7ebda37bb9b55aa290af0f062 > +LIBGPIOD_VERSION := 2.1.3 > +LIBGPIOD_MD5 := dd37487da746569b7311b2c8fd2f907d > LIBGPIOD := libgpiod-$(LIBGPIOD_VERSION) > LIBGPIOD_SUFFIX := tar.gz > LIBGPIOD_URL := https://www.kernel.org/pub/software/libs/libgpiod/$(LIBGPIOD).$(LIBGPIOD_SUFFIX) > LIBGPIOD_SOURCE := $(SRCDIR)/$(LIBGPIOD).$(LIBGPIOD_SUFFIX) > LIBGPIOD_DIR := $(BUILDDIR)/$(LIBGPIOD) > -LIBGPIOD_LICENSE := LGPL-2.1-or-later > +LIBGPIOD_LICENSE := LGPL-2.1-or-later AND GPL-2.0-only WITH Linux-syscall-note > LIBGPIOD_LICENSE_FILES := \ > - file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de \ > - file://lib/core.c;startline=1;endline=6;md5=d5b8d8a364ceff5e7c59b0638f54028c > + file://COPYING;md5=7542998a6925b152c16facf9eaf5eb0c \ > + file://LICENSES/LGPL-2.1-or-later.txt;md5=4b54a1fd55a448865a0b32d41598759d \ > + file://LICENSES/GPL-2.0-only.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ > + file://LICENSES/Linux-syscall-note.txt;md5=6b0dff741019b948dfe290c05d6f361c > + > +ifdef PTXCONF_LIBGPIOD_TOOLS > +LIBGPIOD_LICENSE += AND GPL-2.0-or-later > +LIBGPIOD_LICENSE_FILES += file://LICENSES/GPL-2.0-or-later.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 > +endif > > # ---------------------------------------------------------------------------- > # Prepare > @@ -34,28 +41,26 @@ LIBGPIOD_CONF_TOOL := autoconf > LIBGPIOD_CONF_OPT := \ > $(CROSS_AUTOCONF_USR) \ > --$(call ptx/endis, PTXCONF_LIBGPIOD_TOOLS)-tools \ > + --disable-gpioset-interactive \ > --disable-tests \ > + --disable-profiling \ > + --disable-examples \ > --$(call ptx/endis, PTXCONF_LIBGPIOD_CXX)-bindings-cxx \ > - --$(call ptx/endis, PTXCONF_LIBGPIOD_PYTHON3)-bindings-python > + --$(call ptx/endis, PTXCONF_LIBGPIOD_PYTHON3)-bindings-python \ > + --disable-bindings-rust > > LIBGPIOD_CONF_ENV := \ > $(CROSS_ENV) \ > $(if $(PTXCONF_LIBGPIOD_PYTHON3), ac_cv_path_PYTHON=$(CROSS_PYTHON3)) > > -# libgpiod requires kernel headers >= 4.8 > -ifdef PTXCONF_KERNEL_HEADER > -LIBGPIOD_CPPFLAGS := \ > - -isystem $(KERNEL_HEADERS_INCLUDE_DIR) > -endif > - > LIBGPIOD_LDFLAGS:= -Wl,-rpath-link,$(LIBGPIOD_DIR)/lib/.libs > > LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIODETECT) += gpiodetect > LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIOINFO) += gpioinfo > LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIOGET) += gpioget > LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIOSET) += gpioset > -LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIOFIND) += gpiofind > LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIOMON) += gpiomon > +LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIONOTIFY) += gpionotify > > # ---------------------------------------------------------------------------- > # Target-Install