Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] boot/uboot: add initial environment support
Date: Sun, 26 May 2019 21:50:30 +0200	[thread overview]
Message-ID: <20190526215030.5c40a899@windsurf> (raw)
In-Reply-To: <20190519191635.23814-1-michael@walle.cc>

Hello Michael,

Thanks for this patch! See below a number of comments.

On Sun, 19 May 2019 21:16:35 +0200
Michael Walle <michael@walle.cc> wrote:

> Since v2019.07 U-Boot supports extracting the compiled-in environment.
> As a first step, add support to the environment generation in buildroot.
> In the future, the text file may also be injected into the target
> filesystem.

I'm not sure what you mean by "injected into the target filesystem".
How would this be useful ? U-Boot would pick the environment from the
root filesystem ?

> diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
> index 33b7e67ff7..92f00bf752 100644
> --- a/boot/uboot/Config.in
> +++ b/boot/uboot/Config.in
> @@ -488,7 +488,19 @@ menuconfig BR2_TARGET_UBOOT_ENVIMAGE
>  	  The environment image will be called uboot-env.bin.
>  
>  if BR2_TARGET_UBOOT_ENVIMAGE
> +choice
> +	prompt "Environment image source"
> +	default BR2_TARGET_UBOOT_ENVIMAGE_CUSTOM
> +
> +config BR2_TARGET_UBOOT_ENVIMAGE_INITIAL
> +	bool "Using the initial environment file"

I'm not a fan of the "initial" terminology, although admittedly it's
the one apparently chosen upstream. "built-in" would be a lot more
logical, no ?

Also, I think this option needs a help text that describes what it
does, and the fact that it only works with U-Boot >= 2019.07.

> +config BR2_TARGET_UBOOT_ENVIMAGE_CUSTOM
> +	bool "Using a custom environment file"

Ditto, a help text would be good.

Other than that, looks good to me. Could you just fix those minor
details and send an updated version ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2019-05-26 19:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-19 19:16 [Buildroot] [PATCH] boot/uboot: add initial environment support Michael Walle
2019-05-26 19:50 ` Thomas Petazzoni [this message]
2019-05-27 12:13   ` Michael Walle

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=20190526215030.5c40a899@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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