From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 19 Sep 2025 12:07:15 +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 1uzY1L-004oSO-0I for lore@lore.pengutronix.de; Fri, 19 Sep 2025 12:07:15 +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 1uzY1K-0007xy-Gq; Fri, 19 Sep 2025 12:07:14 +0200 Received: from mail.thorsis.com ([2003:a:e28:26e4::10]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uzY0v-0007at-2d for ptxdist@pengutronix.de; Fri, 19 Sep 2025 12:06:51 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 543251489A77 for ; Fri, 19 Sep 2025 12:06:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1758276408; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding:in-reply-to:references; bh=uv9KhDg7Yqh3ByATm+wVnxe/YmBGTNH8jIpd3TfHVwI=; b=pSv2fkIK99PywWW59Jv9lq0PfotN7cKLN8c2J4Vq89PgfT1lTMZ/4xQvs/7UomSU5E/Lpn d3zpKDJ1o/ljdFJnjpcHVSWmHqvKjpi5LNLXqnM2nr4dKOi76ZXbhntIX5mzR2Ap5hTxww Ah0C6moTwFVFH+wYfpgTb3j9t+ScHZ07cBhVoBReeFFTidlCfv7HBRq/h6Q5n7fc5GnlJ3 HjVsa3WH7L2FU2Uy5U7m9dqfiuEKbEWKVUk0rAX/71/eYBNUgLyMqWqFn9X8GKkTooBjIK 4f1adCtxQimQhWh0+Xi0r2zr+PlvlI4J5UFl/NoN3MPKE/LO8CB3xTlmt72QHw== To: ptxdist@pengutronix.de Date: Fri, 19 Sep 2025 12:06:39 +0200 Message-Id: <20250919100643.199174-2-ada@thorsis.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250919100643.199174-1-ada@thorsis.com> References: <20250919100643.199174-1-ada@thorsis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v2 1/5] libubootenv: Introduce 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: , From: Alexander Dahl via ptxdist Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl 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 Useful to replace target u-boot-tools. Dependency for a potential new swupdate package. Link: https://github.com/sbabic/libubootenv Signed-off-by: Alexander Dahl --- Notes: v2: - reworded commit message v1: - Link: https://lore.ptxdist.org/ptxdist/mailman.2959.1742547175.466.ptxdist@pengutronix.de/ rules/libubootenv.in | 15 +++++++++++ rules/libubootenv.make | 58 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 rules/libubootenv.in create mode 100644 rules/libubootenv.make diff --git a/rules/libubootenv.in b/rules/libubootenv.in new file mode 100644 index 000000000..70f6d9863 --- /dev/null +++ b/rules/libubootenv.in @@ -0,0 +1,15 @@ +## SECTION=system_libraries + +config LIBUBOOTENV + tristate + select HOST_CMAKE + select LIBYAML + select ZLIB + prompt "libubootenv" + help + Generic library and tools to access and modify U-Boot + environment from User Space. + + https://github.com/sbabic/libubootenv + +# vim: ft=kconfig noet tw=72 ts=8 sw=8 diff --git a/rules/libubootenv.make b/rules/libubootenv.make new file mode 100644 index 000000000..d4e678152 --- /dev/null +++ b/rules/libubootenv.make @@ -0,0 +1,58 @@ +# -*-makefile-*- +# +# Copyright (C) 2025 by Alexander Dahl +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBUBOOTENV) += libubootenv + +# +# Paths and names +# +LIBUBOOTENV_VERSION := 0.3.6 +LIBUBOOTENV_MD5 := 7d6b623e8da435cf36e7fcd419a03e43 +LIBUBOOTENV := libubootenv-$(LIBUBOOTENV_VERSION) +LIBUBOOTENV_SUFFIX := tar.gz +LIBUBOOTENV_URL := https://github.com/sbabic/libubootenv/archive/refs/tags/v$(LIBUBOOTENV_VERSION).$(LIBUBOOTENV_SUFFIX) +LIBUBOOTENV_SOURCE := $(SRCDIR)/$(LIBUBOOTENV).$(LIBUBOOTENV_SUFFIX) +LIBUBOOTENV_DIR := $(BUILDDIR)/$(LIBUBOOTENV) +LIBUBOOTENV_LICENSE := MIT AND CC0-1.0 AND LGPL-2.1-or-later +LIBUBOOTENV_LICENSE_FILES := \ + file://LICENSES/MIT.txt;md5=838c366f69b72c5df05c96dff79b35f2 \ + file://LICENSES/CC0-1.0.txt;md5=0ceb3372c9595f0a8067e55da801e4a1 \ + file://LICENSES/LGPL-2.1-or-later.txt;md5=4fbd65380cdd255951079008b364516c + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBUBOOTENV_CONF_TOOL := cmake +LIBUBOOTENV_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DBUILD_DOC=OFF + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libubootenv.targetinstall: + @$(call targetinfo) + + @$(call install_init, libubootenv) + @$(call install_fixup, libubootenv,PRIORITY,optional) + @$(call install_fixup, libubootenv,SECTION,base) + @$(call install_fixup, libubootenv,AUTHOR,"Alexander Dahl ") + @$(call install_fixup, libubootenv,DESCRIPTION,missing) + + @$(call install_lib, libubootenv, 0, 0, 0644, libubootenv) + + @$(call install_finish, libubootenv) + + @$(call touch) + +# vim: ft=make noet tw=72 ts=8 sw=8 -- 2.39.5