From: Alexander Dahl via ptxdist <ptxdist@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>
Subject: [ptxdist] [RFC PATCH 1/7] libubootenv: Introduce new package
Date: Fri, 21 Mar 2025 09:52:40 +0100 [thread overview]
Message-ID: <mailman.2959.1742547175.466.ptxdist@pengutronix.de> (raw)
In-Reply-To: <20250321085246.21344-1-ada@thorsis.com>
[-- Attachment #0: Type: message/rfc822, Size: 5207 bytes --]
From: Alexander Dahl <ada@thorsis.com>
To: ptxdist@pengutronix.de
Subject: [RFC PATCH 1/7] libubootenv: Introduce new package
Date: Fri, 21 Mar 2025 09:52:40 +0100
Message-ID: <20250321085246.21344-2-ada@thorsis.com>
Maybe useful to replace u-boot-tools.
Requirement for the upcoming swupdate package.
Link: https://github.com/sbabic/libubootenv
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
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 <ada@thorsis.com>
+#
+# 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 <ada@thorsis.com>")
+ @$(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
next parent reply other threads:[~2025-03-21 8:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250321085246.21344-1-ada@thorsis.com>
2025-03-21 8:52 ` Alexander Dahl via ptxdist [this message]
2025-03-21 8:52 ` [ptxdist] [RFC PATCH 2/7] libubootenv: Add option for installing tools Alexander Dahl via ptxdist
2025-03-21 8:52 ` [ptxdist] [RFC PATCH 3/7] swupdate: Introduce new package Alexander Dahl via ptxdist
2025-03-21 8:52 ` [ptxdist] [RFC PATCH 4/7] swupdate: Remove targetinstall of example tools Alexander Dahl via ptxdist
2025-03-21 8:52 ` [ptxdist] [RFC PATCH 5/7] swupdate: Add option to build with OpenSSL support Alexander Dahl via ptxdist
2025-03-21 8:52 ` [ptxdist] [RFC PATCH 6/7] swupdate: Fix passing libubootenv dependency Alexander Dahl via ptxdist
2025-03-21 8:52 ` [ptxdist] [RFC PATCH 7/7] swupdate: Add optional zlib support Alexander Dahl via ptxdist
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=mailman.2959.1742547175.466.ptxdist@pengutronix.de \
--to=ptxdist@pengutronix.de \
--cc=ada@thorsis.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