From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 17 Jun 2024 16:38:43 +0200 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 1sJDVL-007d1y-0t for lore@lore.pengutronix.de; Mon, 17 Jun 2024 16:38:43 +0200 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 1sJDVK-0000PD-VJ; Mon, 17 Jun 2024 16:38:42 +0200 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1sJDV2-0000P2-Pn for ptxdist@pengutronix.de; Mon, 17 Jun 2024 16:38:25 +0200 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2ebe0a81dc8so48670061fa.2 for ; Mon, 17 Jun 2024 07:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718635104; x=1719239904; darn=pengutronix.de; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=5m65fK11tO7VHuiREFJGiD/n8N+cDLutSdge+iJ5a4o=; b=AYp6PiDnWylxN8CzQZQKha7WFoYXWUic3Dj1jc9gjyaPEnJNyttJvSwcp3vt4dtvOJ rKqi0I/a/IZwH5K3qhgSvVQhJxlepRLV2TVDoeWLGohOT4LhRXXdbjMWjMwgoGaHhZZz cNPrJMuzjqAneoImr1LpPOqBgK+BwEccBeZXR4Vm9KKY0lmXaepMvquJlil3/kl6jnOS XagLDzNqofkT3gEC1PmHGYt3Ti3ZUURXkbd9ZsS0w10UgZMt7I3S6gqgTvAEy7fuqqKm jLFhH9HqIeAKoITp9glrXY0xqQNfCmHpLVEJHvBgAu8u2opRUOJisYMFPHXspbW0667q GHtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718635104; x=1719239904; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5m65fK11tO7VHuiREFJGiD/n8N+cDLutSdge+iJ5a4o=; b=MVTvp/3+GRi8UK4BiZKwP1zHuHY2PaVyJ7InbS2UqeL7fEcQMOFe//9FofR4us1iMK cDAPba9d4tsxDG6oqqJZzR7eX3E4HJtouV0CRMWtUNatQJmJnayEUWCUfFiUD8sfMOgE AVZGKl/iMs50RD90H1HRIs2d4nsfuLF1QUP3kQYpikpYDY9jZRHC5fJBQY/aVduQ4d/8 oKwyporDY4G7j75ePD0u7L3RZtXyD+GU2B4cVIbi3/3lLG8n/JXRF2Qz9VqkICHJlirl gCNh/zs7ShGxE9OqvbJEeeCu5GDJmmEiQzOTlHYasLzzLAMUZkz8Lf1+jX3cLOsYcQEK AcXQ== X-Gm-Message-State: AOJu0YxcAFUvJ2RxrY/bCzxKT9210BBNudjyBKRqHrrBbaVaAjsZCOv8 3m9ckdGdbMNSk1jUlk6rYxuT1nWklNNwVobD+o2FYlahE9soCL+rEL1e6QOvyHs5K0TfSchpGAF yERs= X-Google-Smtp-Source: AGHT+IEAffNLKdU37H9K5y/FxR8Lce+Omdo7q0evuUjDuOMtXByyCoPCVbAoNN40S3ejHlV5cIvo4A== X-Received: by 2002:a2e:7d01:0:b0:2eb:db67:6101 with SMTP id 38308e7fff4ca-2ec0e5c662amr84458421fa.13.1718635103847; Mon, 17 Jun 2024 07:38:23 -0700 (PDT) Received: from localhost (p200300f65f283b00ca876ee5dd3d1e3b.dip0.t-ipconnect.de. [2003:f6:5f28:3b00:ca87:6ee5:dd3d:1e3b]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57cb72da069sm6477995a12.21.2024.06.17.07.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 07:38:23 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: ptxdist@pengutronix.de Date: Mon, 17 Jun 2024 16:38:19 +0200 Message-ID: <20240617143819.1775360-1-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v2] libpwm: New package 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 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 libpwm is a thin abstract layer to drive PWM devices under Linux. Signed-off-by: Uwe Kleine-König --- Changes since (implicit) v1, available at https://lore.ptxdist.org/ptxdist/20240614155900.799336-1-u.kleine-koenig@baylibre.com/: - Fix typo in my email address (twice) - Add a date to LIBPWM_VERSION to get nicer (i.e. sortable) names for the tarballs - s/LGPL-2.1/LGPL-2.1-only/ - Update LIBPWM_MD5 accordingly The first tree were found/suggested by Roland (thanks!), the last is necessary because of the date addition to $LIBPWM_VERSION. Best regards Uwe patches/libpwm-f7a7496fcb9d/autogen.sh | 1 + rules/libpwm.in | 8 ++++ rules/libpwm.make | 57 ++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 120000 patches/libpwm-f7a7496fcb9d/autogen.sh create mode 100644 rules/libpwm.in create mode 100644 rules/libpwm.make diff --git a/patches/libpwm-f7a7496fcb9d/autogen.sh b/patches/libpwm-f7a7496fcb9d/autogen.sh new file mode 120000 index 000000000000..9f8a4cb7ddcb --- /dev/null +++ b/patches/libpwm-f7a7496fcb9d/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 +# +# 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 ") + @$(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 base-commit: 7f9c1cc0688da418cc9d921e35a5dc8a4d3acdff -- 2.43.0