From: Nishanth Menon <nm@ti.com>
To: Simon Glass <sjg@chromium.org>
Cc: Neha Francis <n-francis@ti.com>, Tom Rini <trini@konsulko.com>,
Bryan <bb@ti.com>, Praneeth <praneeth@ti.com>,
Andrew <afd@ti.com>, Robert Nelson <robertcnelson@gmail.com>,
Vignesh <vigneshr@ti.com>, <u-boot@lists.denx.de>,
Mattijs Korpershoek <mkorpershoek@baylibre.com>,
Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCH V4 1/8] env_default: Allow CONFIG_EXTRA_ENV_TEXT to override CFG_EXTRA_ENV_SETTINGS
Date: Tue, 22 Aug 2023 18:33:58 -0500 [thread overview]
Message-ID: <20230822233358.geaqdn2vi34a5no2@uniformly> (raw)
In-Reply-To: <CAPnjgZ0p5YkgvYM_F0j97bvAoM1qieafyjFQ_neyUoDuNFyN2g@mail.gmail.com>
On 17:16-20230822, Simon Glass wrote:
> Hi Nishanth,
>
> On Tue, 22 Aug 2023 at 12:41, Nishanth Menon <nm@ti.com> wrote:
> >
> > CFG_EXTRA_ENV_SETTINGS is set in common board config files, This allows
> > for majority of the settings to be set in a common manner. However, the
> > minor variations between various board can be addressed by the board.env
> > files. The board.env files are converted into CONFIG_EXTRA_ENV_TEXT.
> >
> > However, this creates a minor problem. For example:
> > distro_bootcmd.h and used by ti_armv7_common.h uses it as:
> > #define BOOT_TARGET_DEVICES(func) \
> > func(MMC, mmc, 0) \
> > func(MMC, mmc, 1)
>
> OK, but we should be using bootstd for new boards.
Agreed, and I think I am using bootstd[1] unless I am missing something
completely.
we still have a problem with EXTRA_ENV_SETTINGS and ENV_TEXT. This patch
helps enforce priority of ENV_TEXT.
But overall, I agree that we need to move off from EXTRA_ENV to text..
probably in stages, I guess.
> >
> > Which in turn generates:
> > boot_targets=mmc0 mmc1
> >
> > And this probably works fine for most boards, However when the
> > boot_targets need to be reversed, the preferred behavior would have been
> > to define it in board.env file as:
> > boot_targets=mmc1 mmc0
> >
> > By changing the order of the inclusion, we allow for the
> > CONFIG_EXTRA_ENV_TEXT to have a higher priority in the definition.
> >
> > Signed-off-by: Nishanth Menon <nm@ti.com>
> > ---
> > Cc: Simon Glass <sjg@chromium.org>
> >
> > New patch
> >
> > include/env_default.h | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/include/env_default.h b/include/env_default.h
> > index b16c22d5a28c..714dfa9e845e 100644
> > --- a/include/env_default.h
> > +++ b/include/env_default.h
> > @@ -112,12 +112,12 @@ const char default_environment[] = {
> > #ifdef CONFIG_MTDPARTS_DEFAULT
> > "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"
> > #endif
> > +#ifdef CFG_EXTRA_ENV_SETTINGS
> > + CFG_EXTRA_ENV_SETTINGS
> > +#endif
> > #ifdef CONFIG_EXTRA_ENV_TEXT
> > /* This is created in the Makefile */
> > CONFIG_EXTRA_ENV_TEXT
> > -#endif
> > -#ifdef CFG_EXTRA_ENV_SETTINGS
> > - CFG_EXTRA_ENV_SETTINGS
> > #endif
>
> and text environment
Could you clarify what I am missing?
[1] https://u-boot.readthedocs.io/en/latest/develop/bootstd.html
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
next prev parent reply other threads:[~2023-08-22 23:34 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 18:41 [PATCH V4 0/8] board: ti: Add support for BeaglePlay Nishanth Menon
2023-08-22 18:41 ` [PATCH V4 1/8] env_default: Allow CONFIG_EXTRA_ENV_TEXT to override CFG_EXTRA_ENV_SETTINGS Nishanth Menon
2023-08-22 23:16 ` Simon Glass
2023-08-22 23:33 ` Nishanth Menon [this message]
2023-08-23 2:34 ` Simon Glass
2023-08-23 11:42 ` Nishanth Menon
2023-08-23 7:47 ` Mattijs Korpershoek
2023-08-23 14:42 ` Tom Rini
2023-08-23 15:06 ` Nishanth Menon
2023-08-23 15:17 ` Tom Rini
2023-08-22 18:41 ` [PATCH V4 2/8] configs: am62x_evm*: Enable EMMC_BOOT configuration Nishanth Menon
2023-08-23 7:50 ` Mattijs Korpershoek
2023-08-22 18:41 ` [PATCH V4 3/8] arm: mach-k3: am625: Add support for UDA FS Nishanth Menon
2023-08-23 7:54 ` Mattijs Korpershoek
2023-08-22 18:41 ` [PATCH V4 4/8] drivers: mmc: am654_sdhci: Update OTAP/ITAP delay Nishanth Menon
2023-08-23 8:06 ` Mattijs Korpershoek
2023-08-23 10:15 ` Nitin Yadav
2023-08-23 10:18 ` Nitin Yadav
2023-08-23 11:38 ` Nishanth Menon
2023-08-23 14:21 ` Nishanth Menon
2023-08-22 18:41 ` [PATCH V4 5/8] arm: dts: k3-am625-sk-binman: Add labels for unsigned binary Nishanth Menon
2023-08-23 8:09 ` Mattijs Korpershoek
2023-08-22 18:41 ` [PATCH V4 6/8] arm: dts: Add k3-am625-beagleplay Nishanth Menon
2023-08-23 8:26 ` Mattijs Korpershoek
2023-08-22 18:41 ` [PATCH V4 7/8] board: ti: am62x: Add am62x_beagleplay_* defconfigs and env file Nishanth Menon
2023-08-23 8:29 ` Mattijs Korpershoek
2023-08-23 14:42 ` Tom Rini
2023-08-22 18:41 ` [PATCH V4 8/8] doc: board: ti: Add BeaglePlay documentation Nishanth Menon
2023-08-23 8:36 ` Mattijs Korpershoek
2023-08-23 15:30 ` Simon Glass
2023-08-23 17:15 ` Tom Rini
2023-08-23 23:57 ` Simon Glass
2023-08-24 0:18 ` Nishanth Menon
2023-08-24 3:01 ` Simon Glass
2023-08-24 3:27 ` Nishanth Menon
2023-08-24 8:21 ` Mattijs Korpershoek
2023-08-24 12:07 ` Nishanth Menon
2023-08-24 13:16 ` Neha Malcom Francis
2023-08-24 14:20 ` Tom Rini
2023-08-24 14:41 ` Simon Glass
2023-08-24 14:43 ` Tom Rini
2023-08-24 14:46 ` Simon Glass
2023-08-25 14:17 ` Neha Malcom Francis
2023-08-24 14:16 ` Tom Rini
2023-08-25 1:04 ` Simon Glass
2023-08-25 1:22 ` Nishanth Menon
2023-08-25 1:31 ` Simon Glass
2023-08-25 1:59 ` Nishanth Menon
2023-08-25 23:45 ` Simon Glass
2023-08-26 1:06 ` Robert Nelson
2023-08-26 2:04 ` Simon Glass
2023-08-28 13:01 ` Nishanth Menon
2023-08-23 7:44 ` [PATCH V4 0/8] board: ti: Add support for BeaglePlay Mattijs Korpershoek
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=20230822233358.geaqdn2vi34a5no2@uniformly \
--to=nm@ti.com \
--cc=afd@ti.com \
--cc=bb@ti.com \
--cc=jan.kiszka@siemens.com \
--cc=mkorpershoek@baylibre.com \
--cc=n-francis@ti.com \
--cc=praneeth@ti.com \
--cc=robertcnelson@gmail.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.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