From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 17 Jun 2024 08:57:35 +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 1sJ6J4-007S7t-38 for lore@lore.pengutronix.de; Mon, 17 Jun 2024 08:57:35 +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 1sJ6J4-0007TE-7b; Mon, 17 Jun 2024 08:57:34 +0200 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1sI9KT-0002xP-Nf for ptxdist@pengutronix.de; Fri, 14 Jun 2024 17:59:06 +0200 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a6f177b78dcso322001666b.1 for ; Fri, 14 Jun 2024 08:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718380745; x=1718985545; 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=Hs8/LjSeaslD1As6U4xvje9cpCZxZey591vzFhWErro=; b=szo6pfcGHAYYAUMwSH0Uk6bBKBfstLlfS+cClF9zSTU4H/SCDDhPiX8NOj5X4hVlO+ PdyYMEhV40uwY+l0b4gSiDDrN3OVuPLnMDMOb4jLzfagpsL/HNVaEct5Rvbf7yomP1Sd ME+11BiIblq226MRtIUKGqfNYeMdQnZCIFtuZRxdJ1lVjxss9ukclgRBxAIPGxoRV4JV PJqvKZJMgf/1TxUQZSrzfHIYuwTObRQUCWWmAe1C7ks/YYgrWidoMW+pPO102l6hUHPy XUX5vWjKK+v2FmOTFK9QO+gag41EeB1IrHTXnIC23g6hMed2H6a10bI2reK2/P92fWpZ hrxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718380745; x=1718985545; 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=Hs8/LjSeaslD1As6U4xvje9cpCZxZey591vzFhWErro=; b=n15P56dl8AzSbB+dLSEd5oxnqlMdApiJfO0+xqDJtY0F/p1QDQB9gIngZLt4/LL/6x 9YRCqDz8hvb1V5x1T2vlooCJjrPaksSL6PG5VmQEWvCY9uI0En/dKkoWY5asTX6vX9/X 6jPRt8ozqTArFb96uftzaBRJdaZIvkMLVOjtZT3utk7dRJ4gEnQnKgmYjH2MwP/raMOw pQnZO4CuahvhCDDwlnY5uERhCnS/gQHqWp8U0UFWamD4802tHCuqACOPxiijMnnulJig 8oT3DkhZ4Z1wQHEzLYDNvfuLOp2ZYnii8HyVeP48qgmecyOEMjrwBmlRZisjKNW7FSFL sAmw== X-Gm-Message-State: AOJu0YyOQBZ7MCzkMoMUBlCu91h1DMA69xjkcUzk1E2SM8DIN66Vq1QQ naGCsFlxNOXSZzh3TCF+W9qw4ULAiZLqb4DatMBGxf+9mFH34BxUiilE0oSeKNNfkQyIGMU0w/t Ama8= X-Google-Smtp-Source: AGHT+IFglANlLiQ/VY7A0ARsyS0/bQNffiJ6+3yhD/NxcddSWucCTX3RRSaoN94UR91Xpj2gDZ67Sg== X-Received: by 2002:a17:906:528a:b0:a6f:4c39:8aea with SMTP id a640c23a62f3a-a6f60ced3efmr204513366b.15.1718380744796; Fri, 14 Jun 2024 08:59:04 -0700 (PDT) Received: from localhost (p509153eb.dip0.t-ipconnect.de. [80.145.83.235]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f5952f85fsm187638066b.11.2024.06.14.08.59.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 08:59:04 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: ptxdist@pengutronix.de Date: Fri, 14 Jun 2024 17:59:00 +0200 Message-ID: <20240614155900.799336-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=-2.9 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 X-Mailman-Approved-At: Mon, 17 Jun 2024 08:57:12 +0200 Subject: [ptxdist] [PATCH] 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 --- 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..b7c1810951e5 --- /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 := f7a7496fcb9d +LIBPWM_MD5 := 8ed77baaad0328359cbaf075517b0025 +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 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