mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] libpwm: version bump 1.0-rc1 -> 1.0-rc2
@ 2025-08-01 10:40 Uwe Kleine-König
  2025-08-29  9:46 ` [ptxdist] [APPLIED] libpwm: drop kernel-header dependency Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2025-08-01 10:40 UTC (permalink / raw)
  To: ptxdist

The rc2 release contains a few minor bug fixes and ships a copy of
<linux/pwm.h> which makes it possible to compile in the character device
support with kernel headers older than 6.17-rc1.

So the dependency on KERNEL_HEADER can be dropped.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
On Fri, Aug 01, 2025 at 11:36:35AM +0200, Michael Olbrich wrote:
> On Tue, Jul 29, 2025 at 07:27:58PM +0200, Uwe Kleine-König wrote:
> > libpwm 1.0-rc2 doesn't need kernel headers any more as it contains a
> > copy of <linux/pwm.h> now. Still if PTXCONF_KERNEL_HEADER=y libpwm
> > should be built after kernel-header. I don't know how to formalize that.
> 
> Drop the 'select' and make the CPPFLAGS conditional, like e.g.
> rules/liburing.make.

Implemented in this v2.

> The kernel headers are always built before other target packages.

That makes sense, thanks.

Best regards
Uwe

 rules/libpwm.in   | 1 -
 rules/libpwm.make | 8 +++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/rules/libpwm.in b/rules/libpwm.in
index 6d07e056a3e5..6906053406a3 100644
--- a/rules/libpwm.in
+++ b/rules/libpwm.in
@@ -3,6 +3,5 @@
 config LIBPWM
 	bool
 	prompt "libpwm"
-	select KERNEL_HEADER
 	help
 	  drive Linux PWM devices from userspace
diff --git a/rules/libpwm.make b/rules/libpwm.make
index 4c14e030d6e2..8dfd9d76f67f 100644
--- a/rules/libpwm.make
+++ b/rules/libpwm.make
@@ -14,11 +14,11 @@ PACKAGES-$(PTXCONF_LIBPWM) += libpwm
 #
 # Paths and names
 #
-LIBPWM_VERSION		:= 1.0-rc1
-LIBPWM_MD5		:= bb8032cd03c25a0dcdc76712acda714c
+LIBPWM_VERSION		:= 1.0-rc2
+LIBPWM_MD5		:= ccf05e263bd26418311e0e93848b3a71
 LIBPWM			:= libpwm-$(LIBPWM_VERSION)
 LIBPWM_SUFFIX		:= tar.xz
-LIBPWM_URL		:= https://mirrors.edge.kernel.org/pub/linux/kernel/people/ukleinek/libpwm/libpwm-1.0-rc1.tar.xz
+LIBPWM_URL		:= https://mirrors.edge.kernel.org/pub/linux/kernel/people/ukleinek/libpwm/libpwm-$(LIBPWM_VERSION).tar.xz
 LIBPWM_SOURCE		:= $(SRCDIR)/$(LIBPWM).$(LIBPWM_SUFFIX)
 LIBPWM_DIR		:= $(BUILDDIR)/$(LIBPWM)
 LIBPWM_BUILD_OOT	:= YES
@@ -31,7 +31,9 @@ LIBPWM_LICENSE_FILES	:= file://COPYING;md5=41d65f310284fe1f2945ea9c57f297c7
 LIBPWM_CONF_TOOL	:= autoconf
 LIBPWM_CONF_OPT		:= $(CROSS_AUTOCONF_USR)
 
+ifdef PTXCONF_KERNEL_HEADER
 LIBPWM_CPPFLAGS := -isystem $(KERNEL_HEADERS_INCLUDE_DIR)
+endif
 
 # ----------------------------------------------------------------------------
 # Target-Install

base-commit: c9de78371f3db2737a547584085a0376e73f76b0
-- 
2.50.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] libpwm: drop kernel-header dependency
  2025-08-01 10:40 [ptxdist] [PATCH v2] libpwm: version bump 1.0-rc1 -> 1.0-rc2 Uwe Kleine-König
@ 2025-08-29  9:46 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2025-08-29  9:46 UTC (permalink / raw)
  To: ptxdist; +Cc: Uwe Kleine-König

Thanks, applied as 679de61a65e3e600d8d18d5eda16267c45ef075d.

Michael

[sent from post-receive hook]

On Fri, 29 Aug 2025 11:46:08 +0200, Uwe Kleine-König <u.kleine-koenig@baylibre.com> wrote:
> The rc2 release contains a few minor bug fixes and ships a copy of
> <linux/pwm.h> which makes it possible to compile in the character device
> support with kernel headers older than 6.17-rc1.
> 
> So the dependency on KERNEL_HEADER can be dropped.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> Message-Id: <20250801104042.177835-2-u.kleine-koenig@baylibre.com>
> [mol: v1 of "libpwm: version bump 1.0-rc1 -> 1.0-rc2" was accidentally
> applied. This is the rest of v2]
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/libpwm.in b/rules/libpwm.in
> index 6d07e056a3e5..6906053406a3 100644
> --- a/rules/libpwm.in
> +++ b/rules/libpwm.in
> @@ -3,6 +3,5 @@
>  config LIBPWM
>  	bool
>  	prompt "libpwm"
> -	select KERNEL_HEADER
>  	help
>  	  drive Linux PWM devices from userspace
> diff --git a/rules/libpwm.make b/rules/libpwm.make
> index 82770805f341..8dfd9d76f67f 100644
> --- a/rules/libpwm.make
> +++ b/rules/libpwm.make
> @@ -31,7 +31,9 @@ LIBPWM_LICENSE_FILES	:= file://COPYING;md5=41d65f310284fe1f2945ea9c57f297c7
>  LIBPWM_CONF_TOOL	:= autoconf
>  LIBPWM_CONF_OPT		:= $(CROSS_AUTOCONF_USR)
>  
> +ifdef PTXCONF_KERNEL_HEADER
>  LIBPWM_CPPFLAGS := -isystem $(KERNEL_HEADERS_INCLUDE_DIR)
> +endif
>  
>  # ----------------------------------------------------------------------------
>  # Target-Install



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-29  9:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-01 10:40 [ptxdist] [PATCH v2] libpwm: version bump 1.0-rc1 -> 1.0-rc2 Uwe Kleine-König
2025-08-29  9:46 ` [ptxdist] [APPLIED] libpwm: drop kernel-header dependency Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox