default environment append from kconfig

Tom Rini trini at konsulko.com
Wed Aug 10 19:04:39 CEST 2022


On Wed, Aug 10, 2022 at 05:09:45PM +0200, Francesco Dolcini wrote:
> On Wed, Aug 10, 2022 at 10:34:26AM -0400, Tom Rini wrote:
> > On Tue, Aug 09, 2022 at 12:47:39PM +0200, Francesco Dolcini wrote:
> > > Hello all,
> > > is there any kconfig mechanism in u-boot to append environment variable to the
> > > default one?
> > > 
> > > I am aware of CONFIG_USE_DEFAULT_ENV_FILE, but this will completely
> > > replace it, looking into the code I was not able to find anything, but I
> > > wonder if something from this
> > > https://lore.kernel.org/all/20211022030852.1986718-1-sjg@chromium.org/
> > > can be used.
> > 
> > Yes, you can use the series above, which has been merged for some time,
> > to append to the environment via board/../<board>/<board>.env and you
> > can look at the existing .env files for examples of how it works.
> Am I wrong or this just override the whole environment? My need here is
> to just add|override some env variables to the default env to an in-tree
> u-boot board from an out-of-tree configuration.
> 
> Think about a specific network or boot configuration, for example.

It doesn't override the whole environment. As of the link you posted, it
did override all of (or rather, conflicted with)
CONFIG_EXTRA_ENV_SETTINGS, but I changed that more recently as it was
hindering adoption of the feature overall.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220810/331305d6/attachment.sig>


More information about the U-Boot mailing list