u-boot/scripts
Rasmus Villemoes 15c160301c scripts/get_default_envs.sh: preserve order of multiple entries for same variable
It's possible that the default_environment[] array contains multiple
entries for the same variable, e.g. a setting from env_default.h based
on some CONFIG_* variable, and another from
CONFIG_EXTRA_ENV_SETTINGS. In such a case, the last setting takes
effect.

Hence, in order to be able to use the output from this script as an
CONFIG_DEFAULT_ENV_FILE and get the same default environment as one
currently has, we need to preserve the order. So only sort by the
variable name, and disable the last-resort comparison.

We could pipe the result through uniq to remove duplicate lines, but I
think there's some value in seeing that certain variables are defined
multiple times.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-05-06 15:12:48 -04:00
..
basic fixdep: Re-sync with Linux 5.7-rc1 2020-04-24 10:51:32 -04:00
coccinelle coccinelle: adjust NULL check before free() 2020-04-24 16:40:09 -04:00
dtc kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
kconfig kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
.gitignore docproc: Remove 2018-08-03 19:53:54 -04:00
bin2c.c
binutils-version.sh
build-whitelist.sh
build_OID_registry lib: add oid registry utility 2019-12-06 16:44:20 -05:00
check-config.sh scripts/check-config.sh: Add usage() 2018-12-26 18:24:26 -05:00
checkpatch.pl tools: checkpatch: Restore 'debug' and 'printf' to logFunctions list 2019-11-23 10:28:56 -05:00
checkstack.pl
cleanpatch
coccicheck
config_whitelist.txt Merge branch 'next' of git://git.denx.de/u-boot-sh 2020-05-04 07:27:06 -04:00
const_structs.checkpatch
coreboot.sed SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
decodecode scripts: add decodecode from Linux 2018-05-23 22:06:41 -04:00
documentation-file-ref-check scripts: add documentation-file-ref-check 2020-04-17 12:32:36 -04:00
gcc-stack-usage.sh SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gcc-version.sh
get_default_envs.sh scripts/get_default_envs.sh: preserve order of multiple entries for same variable 2020-05-06 15:12:48 -04:00
get_maintainer.pl get_maintainer.pl: update from Linux kernel v4.16 2018-04-10 15:19:14 -04:00
Kbuild.include kbuild: cherry-pick kbuild changes from Linux 2020-04-24 16:40:09 -04:00
kernel-doc scripts/kernel-doc: fix parsing of function pointers 2019-07-24 14:15:36 -04:00
ld-version.sh
Lindent
mailmapper scripts: mailmapper: SPDX license identifier 2018-06-04 11:25:30 -04:00
Makefile docproc: Remove 2018-08-03 19:53:54 -04:00
Makefile.autoconf SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile.build kbuild: cherry-pick kbuild changes from Linux 2020-04-24 16:40:09 -04:00
Makefile.clean kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
Makefile.extrawarn kbuild: Re-sync DTC flag logic with v4.17 2020-03-16 12:49:09 -04:00
Makefile.host kbuild: cherry-pick kbuild changes from Linux 2020-04-24 16:40:09 -04:00
Makefile.lib kbuild: cherry-pick kbuild changes from Linux 2020-04-24 16:40:09 -04:00
Makefile.spl kbuild: SPL/TPL: generate separate asm-offsets.h for SPL and TPL 2020-04-28 15:44:31 -04:00
Makefile.uncmd_spl dm: gpio: Allow control of GPIO uclass in SPL 2019-12-15 08:52:29 +08:00
mkmakefile
objdiff
setlocalversion
show-gnu-make SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spelling.txt scripts/spelling.txt: Sync script with kernel 4.16-rc4 2018-03-05 10:16:30 -05:00