From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Subject: Re: [ptxdist] [APPLIED] libpwm: New package
Date: Sun, 23 Jun 2024 16:19:38 +0200 [thread overview]
Message-ID: <20240623141938.1675634-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20240618084452.2152721-2-u.kleine-koenig@baylibre.com>
Thanks, applied as 5708e705573a43940c78adcb3f53cf7919bf2ba1.
Michael
[sent from post-receive hook]
On Sun, 23 Jun 2024 16:19:38 +0200, Uwe Kleine-König <u.kleine-koenig@baylibre.com> wrote:
> libpwm is a thin abstract layer to drive PWM devices under Linux.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> Message-Id: <20240618084452.2152721-2-u.kleine-koenig@baylibre.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/patches/libpwm-2024-04-09-gf7a7496fcb9d/autogen.sh b/patches/libpwm-2024-04-09-gf7a7496fcb9d/autogen.sh
> new file mode 120000
> index 000000000000..9f8a4cb7ddcb
> --- /dev/null
> +++ b/patches/libpwm-2024-04-09-gf7a7496fcb9d/autogen.sh
> @@ -0,0 +1 @@
> +../autogen.sh
> \ No newline at end of file
> diff --git a/rules/libpwm.in b/rules/libpwm.in
> new file mode 100644
> index 000000000000..6d07e056a3e5
> --- /dev/null
> +++ b/rules/libpwm.in
> @@ -0,0 +1,8 @@
> +## SECTION=system_libraries
> +
> +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
> new file mode 100644
> index 000000000000..df4cd5bd542c
> --- /dev/null
> +++ b/rules/libpwm.make
> @@ -0,0 +1,57 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2024 by Uwe Kleine-Koenig <u.kleine-koenig@baylibre.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBPWM) += libpwm
> +
> +#
> +# Paths and names
> +#
> +LIBPWM_VERSION := 2024-04-09-gf7a7496fcb9d
> +LIBPWM_MD5 := 432a7dcb3a71449d6e07c805788a721b
> +LIBPWM := libpwm-$(LIBPWM_VERSION)
> +LIBPWM_SUFFIX := tar.gz
> +LIBPWM_URL := https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/libpwm.git/snapshot/$(LIBPWM_VERSION).$(LIBPWM_SUFFIX)
> +LIBPWM_SOURCE := $(SRCDIR)/$(LIBPWM).$(LIBPWM_SUFFIX)
> +LIBPWM_DIR := $(BUILDDIR)/$(LIBPWM)
> +LIBPWM_BUILD_OOT := YES
> +LIBPWM_LICENSE := LGPL-2.1-only AND 0BSD
> +LIBPWM_LICENSE_FILES := file://COPYING;md5=41d65f310284fe1f2945ea9c57f297c7
> +
> +#
> +# autoconf
> +#
> +LIBPWM_CONF_TOOL := autoconf
> +LIBPWM_CONF_OPT := $(CROSS_AUTOCONF_USR)
> +
> +LIBPWM_CPPFLAGS := -isystem $(KERNEL_HEADERS_INCLUDE_DIR)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/libpwm.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, libpwm)
> + @$(call install_fixup, libpwm, PRIORITY, optional)
> + @$(call install_fixup, libpwm, SECTION, base)
> + @$(call install_fixup, libpwm, AUTHOR, "Uwe Kleine-Koenig <u.kleine-koenig@baylibre.com>")
> + @$(call install_fixup, libpwm, DESCRIPTION, missing)
> +
> + @$(call install_lib, libpwm, 0, 0, 0644, libpwm)
> + @$(call install_copy, libpwm, 0, 0, 0755, -, /usr/bin/pwmtest)
> + @$(call install_copy, libpwm, 0, 0, 0755, -, /usr/bin/pwmtestperf)
> +
> + @$(call install_finish, libpwm)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
prev parent reply other threads:[~2024-06-23 14:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-18 8:44 [ptxdist] [PATCH v3] " Uwe Kleine-König
2024-06-23 14:19 ` 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=20240623141938.1675634-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=u.kleine-koenig@baylibre.com \
/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