From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>
Subject: Re: [ptxdist] [APPLIED] libubootenv: Add option for installing tools
Date: Mon, 22 Sep 2025 13:04:25 +0200 [thread overview]
Message-ID: <20250922110425.2076801-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20250919100643.199174-3-ada@thorsis.com>
Thanks, applied as 2468a48e9295b206a233c739e9b099824f9158e8.
Michael
[sent from post-receive hook]
On Mon, 22 Sep 2025 13:04:25 +0200, Alexander Dahl <ada@thorsis.com> wrote:
> These tools can also be provided by the u-boot-tools package.
>
> This variant promises to be board independent, and comes with a library,
> and has more features.
>
> Can be used as drop-in replacement for fw_printenv and fw_setenv.
> Helpful for writing env to mmcblockXbootX which is ro by default, and
> u-boot-tools does not handle that.
>
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20250919100643.199174-3-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/libubootenv.in b/rules/libubootenv.in
> index 70f6d9863885..317a440fc0de 100644
> --- a/rules/libubootenv.in
> +++ b/rules/libubootenv.in
> @@ -1,15 +1,29 @@
> ## SECTION=system_libraries
>
> -config LIBUBOOTENV
> +menuconfig LIBUBOOTENV
> tristate
> select HOST_CMAKE
> select LIBYAML
> select ZLIB
> - prompt "libubootenv"
> + prompt "libubootenv "
> help
> Generic library and tools to access and modify U-Boot
> environment from User Space.
>
> https://github.com/sbabic/libubootenv
>
> +if LIBUBOOTENV
> +
> +config LIBUBOOTENV_TOOLS
> + bool
> + prompt "fw_printenv / fw_setenv"
> + depends on !U_BOOT_TOOLS || ALLYES
> + help
> + Install fw_printenv and fw_setenv to target.
> +
> +comment "u-boot-tools is selected!"
> + depends on U_BOOT_TOOLS
> +
> +endif
> +
> # vim: ft=kconfig noet tw=72 ts=8 sw=8
> diff --git a/rules/libubootenv.make b/rules/libubootenv.make
> index d4e67815266b..769961dfa068 100644
> --- a/rules/libubootenv.make
> +++ b/rules/libubootenv.make
> @@ -51,6 +51,13 @@ $(STATEDIR)/libubootenv.targetinstall:
>
> @$(call install_lib, libubootenv, 0, 0, 0644, libubootenv)
>
> +ifdef PTXCONF_LIBUBOOTENV_TOOLS
> +# # same path as the equivalents from u-boot-tools package
> + @$(call install_copy, libubootenv, 0, 0, 0755, \
> + $(LIBUBOOTENV_PKGDIR)/usr/bin/fw_printenv, /usr/sbin/fw_printenv)
> + @$(call install_link, libubootenv, fw_printenv, /usr/sbin/fw_setenv)
> +endif
> +
> @$(call install_finish, libubootenv)
>
> @$(call touch)
next prev parent reply other threads:[~2025-09-22 11:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 10:06 [ptxdist] [PATCH v2 0/5] libubootenv: New package to replace target u-boot-tools Alexander Dahl via ptxdist
2025-09-19 10:06 ` [ptxdist] [PATCH v2 1/5] libubootenv: Introduce new package Alexander Dahl via ptxdist
2025-09-22 11:04 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-09-19 10:06 ` [ptxdist] [PATCH v2 2/5] libubootenv: Add option for installing tools Alexander Dahl via ptxdist
2025-09-22 11:04 ` Michael Olbrich [this message]
2025-09-19 10:06 ` [ptxdist] [PATCH v2 3/5] libubootenv: Install config file to target Alexander Dahl via ptxdist
2025-09-22 11:04 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-09-19 10:06 ` [ptxdist] [PATCH v2 4/5] libubootenv: Import some fixes from master Alexander Dahl via ptxdist
2025-09-22 11:04 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-09-19 10:06 ` [ptxdist] [PATCH v2 5/5] libubootenv: Make yaml support optional Alexander Dahl via ptxdist
2025-09-22 11:04 ` [ptxdist] [APPLIED] " Michael Olbrich
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=20250922110425.2076801-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ada@thorsis.com \
--cc=ptxdist@pengutronix.de \
/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