All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH] env: Add option to only ever append environment
Date: Tue, 2 Jun 2020 21:06:42 +0200	[thread overview]
Message-ID: <56bcc881-c414-c129-aaa2-f9479488e72e@denx.de> (raw)
In-Reply-To: <20200602173627.GN21630@bill-the-cat>

On 6/2/20 7:36 PM, Tom Rini wrote:
[...]
>>>>>> One will append the environment, the other will override it (if you have
>>>>>> multiple envs enabled).
>>>>>
>>>>> So it sounds like it wouldn't be valid to have this option differ
>>>>> between SPL and main U-Boot?
>>>>
>>>> Consider the case where you have default env in SPL, and multiple envs
>>>> in U-Boot proper.
>>>
>>> Yes, today you can end up with cases where you build something that doesn't
>>> work as intended (likely something around falcon boot and/or boot count
>>> limit in env).  Which is what I'm getting at here.  Is there some
>>> cases where it would make any sense to enable this option in full U-Boot
>>> but disable it in SPL?
>>
>> Yes, like my current use case, where I want to configure the SPL
>> differently than U-Boot itself. SPL doesn't even have environment
>> support enabled, but it might be needed later.
> 
> Sorry I wasn't clear enough.  Does it make sense (when? how?) to have
> environment in SPL but mismatch this feature?

If you have only one env source in SPL and multiple in U-Boot for
example. But this is besides the point, I want to be able to configure
my env handling whichever I need it to without working around problems
like the ones below.

>> And also, I don't want to end up in the same problem we currently have
>> e.g. with USB gadget, where I have to manually #ifdef CONFIG_SPL_BUILD
>> #undef CONFIG_ options in the board config file.
> 
> Yes, don't do that, I've had to fix a few of those of late in catching
> converted but still in config header options.

This is the result of not having a dedicated SPL/TPL config options though.

  reply	other threads:[~2020-06-02 19:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-29 17:54 [PATCH] env: Add option to only ever append environment Marek Vasut
2020-06-02  6:42 ` Rasmus Villemoes
2020-06-02 11:04   ` Marek Vasut
2020-06-02 12:05     ` Rasmus Villemoes
2020-06-02 12:09       ` Marek Vasut
2020-06-02 14:43         ` Tom Rini
2020-06-02 15:54           ` Marek Vasut
2020-06-02 12:44       ` Tom Rini
2020-06-02 12:47         ` Marek Vasut
2020-06-02 14:38           ` Tom Rini
2020-06-02 15:55             ` Marek Vasut
2020-06-02 16:00               ` Tom Rini
2020-06-02 16:06                 ` Marek Vasut
2020-06-02 17:36                   ` Tom Rini
2020-06-02 19:06                     ` Marek Vasut [this message]
2020-06-02 23:32                       ` Tom Rini
2020-06-02 23:42                         ` Marek Vasut

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=56bcc881-c414-c129-aaa2-f9479488e72e@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.