[U-Boot] [PATCH v3 3/5] Allow U-Boot scripts to be placed in a .env file
Otavio Salvador
otavio at ossystems.com.br
Mon Oct 28 14:34:33 CET 2013
Hello,
On Sat, Oct 26, 2013 at 3:01 AM, Simon Glass <sjg at chromium.org> wrote:
> At present U-Boot environment variables, and thus scripts, are defined
> by CONFIG_EXTRA_ENV_SETTINGS. It is painful to add large amounts of text
> to this file and dealing with quoting and newlines is harder than it
> should be. It would be better if we could just type the script into a
> text file and have it included by U-Boot.
>
> Add a feature that brings in a .env file associated with the board
> config, if present. To use it, create a file in a board/<vendor>/env
> directory called <board>.env (or common.env if you want the same
> environment for all boards).
>
> The environment variables should be of the form "var=value". Values can
> extend to multiple lines. See the README under 'Environment Variables:'
> for more information and an example.
>
> Comments are not permitted in the environment with this commit.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
I think people (or myself) are misunderstanding what this patch does.
My understand is:
- it allow moving environment setting to a .env file
- it needs to include the environment at /build/ time
This does improve a lot the current status (and I really appreciate
it); one missing thing (or I missed it completely) is a way to:
- build u-boot (binary)
- generate a binary version of the environment
- glue both together in a way the new environment /replaces/ the
default environment originally written inside u-boot (binary)
Am I missing something?
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
More information about the U-Boot
mailing list