From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 21 Mar 2025 09:53:15 +0100 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 1tvY7v-002G0p-2y for lore@lore.pengutronix.de; Fri, 21 Mar 2025 09:53:15 +0100 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 1tvY7v-0002o2-0w; Fri, 21 Mar 2025 09:53:15 +0100 To: ptxdist@pengutronix.de Date: Fri, 21 Mar 2025 09:52:40 +0100 In-Reply-To: <20250321085246.21344-1-ada@thorsis.com> References: <20250321085246.21344-1-ada@thorsis.com> MIME-Version: 1.0 Message-ID: List-Id: PTXdist Development Mailing List List-Post: From: Alexander Dahl via ptxdist Precedence: list Cc: Alexander Dahl X-Mailman-Version: 2.1.29 X-BeenThere: ptxdist@pengutronix.de List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: ptxdist@pengutronix.de List-Help: Subject: [ptxdist] [RFC PATCH 1/7] libubootenv: Introduce new package Content-Type: message/rfc822 Content-Disposition: inline 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 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 1tvY7Y-00026O-B9 for ptxdist@pengutronix.de; Fri, 21 Mar 2025 09:52:55 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9159A1488D6D for ; Fri, 21 Mar 2025 09:52:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1742547171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EDDvj0OPMG0GFkjBl6scIPNlH5nmv0PfPnB8JVdiw1g=; b=FxFmU2pVrAT391v2nwf0J8XsHEObLTAHV17XaD/Sxv24lbJ28a1ljHYyrq3GfXYtUtCuIK nGbSC5UNQ2z3w6qLL+PASEWSITf9axX2bfhNVCwEWp2uddTHgTT+38Fmyg1dZ3aiDIj0PO n1hVYkdAsuE6dF3fu8qpXhjscc3YsGyG2iSRVzk3RUM6cvIDJUw+FoxUPCTeFgOZntTSiB yq0FncEwT5hLsdYHVmlXT4OfDyybtFhGJ5Df3GL3bgNza6DOHzMP9StHdIvbCC8pKoVJSH o7fAnCkmJ0+sUiakQCWVlmJSz47YkXdiQMnpnHbByR/tSsQK5ayqrmlF6UU7JA== From: Alexander Dahl To: ptxdist@pengutronix.de Date: Fri, 21 Mar 2025 09:52:40 +0100 Message-Id: <20250321085246.21344-2-ada@thorsis.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250321085246.21344-1-ada@thorsis.com> References: <20250321085246.21344-1-ada@thorsis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-SA-Exim-Connect-IP: 2003:a:e28:26e4::10 X-SA-Exim-Mail-From: ada@thorsis.com 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.4 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: [RFC PATCH 1/7] libubootenv: Introduce new package X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) X-PTX-Original-Recipient: ptxdist@pengutronix.de Maybe useful to replace u-boot-tools. Requirement for the upcoming swupdate package. Link: https://github.com/sbabic/libubootenv Signed-off-by: Alexander Dahl --- 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