mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Markus Heidelberg <m.heidelberg@cab.de>
Subject: Re: [ptxdist] [APPLIED] libgpiod: version bump 1.6.3 -> 2.1.3
Date: Fri, 22 Nov 2024 12:01:06 +0100	[thread overview]
Message-ID: <20241122110106.3102666-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20240926132653.686058-1-m.heidelberg@cab.de>

Thanks, applied as 8e8ae72833d488cbdcb7c1cb8bc78038951e1636.

Michael

[sent from post-receive hook]

On Fri, 22 Nov 2024 12:01:06 +0100, Markus Heidelberg <m.heidelberg@cab.de> 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 <m.heidelberg@cab.de>
> 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 <m.olbrich@pengutronix.de>
> 
> 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



      reply	other threads:[~2024-11-22 11:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-26 13:15 [ptxdist] [PATCH] ptxdist: " Markus Heidelberg
2024-09-26 13:26 ` [ptxdist] [PATCH v2] " Markus Heidelberg
2024-11-22 11:01   ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241122110106.3102666-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=m.heidelberg@cab.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox