u-boot/test
Simon Glass 86b9c3e4e4 env: Allow U-Boot scripts to be placed in a .env file
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>
directory, typically called <board>.env and controlled by the
CONFIG_ENV_SOURCE_FILE option.

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.

In many cases environment variables need access to the U-Boot CONFIG
variables to select different options. Enable this so that the environment
scripts can be as useful as the ones currently in the board config files.
This uses the C preprocessor, means that comments can be included in the
environment using /* ... */

Also support += to allow variables to be appended to. This is needed when
using the preprocessor.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Tested-by: Marek Behún <marek.behun@nic.cz>
2021-11-16 14:35:08 -05:00
..
cmd test: cmd: setexpr: add format string tests 2021-07-27 17:56:13 -04:00
common sandbox: Reduce keyed autoboot delay 2021-08-01 09:05:24 -06:00
dm test/dm: fix watchdog test 2021-11-13 08:16:52 -07:00
env sandbox: add test of CONFIG_ENV_IMPORT_FDT 2021-05-04 12:52:30 -04:00
fs
image sandbox: Support executables for more phases 2021-07-21 10:27:34 -06:00
lib Add support for an owned buffer 2021-10-08 15:53:26 -04:00
log log: Allow padding of the function name 2021-07-21 10:27:35 -06:00
optee test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
overlay test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
py env: Allow U-Boot scripts to be placed in a .env file 2021-11-16 14:35:08 -05:00
stdint
trace
bloblist.c test: Tidy a comment in the bloblist test 2021-09-16 13:19:25 -04:00
bootm.c test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
cmd_ut.c test: add first autoboot unit tests 2021-07-23 13:36:20 -04:00
command_ut.c
common.sh
compression.c lz4: Use a private header for U-Boot 2021-10-09 13:09:56 -04:00
Kconfig lib: add crypt subsystem 2021-07-23 13:36:14 -04:00
Makefile test: add first autoboot unit tests 2021-07-23 13:36:20 -04:00
nokia_rx51_test.sh Nokia RX-51: Add check for /lib/ld-linux.so.2 in test script 2021-07-15 17:56:05 +05:30
print_ut.c lib: Add a function to convert a string to a hex value 2021-11-11 19:02:34 -05:00
run test: Run sandbox_spl tests on sandbox_noinst 2021-03-26 17:03:09 +13:00
str_ut.c lib: Allow using 0x when a decimal value is requested 2021-08-02 13:32:14 -04:00
test-main.c test: Avoid a build error with SPL 2021-07-21 10:27:34 -06:00
time_ut.c
unicode_ut.c Prepare v2021.04-rc4 2021-03-15 12:15:38 -04:00
ut.c test: Add a way to skip console checking until a string matches 2021-09-16 14:39:40 -04:00