u-boot-brain/scripts
Philipp Tomsich 81630a3b38 scripts: setlocalversion: safely extract variables from auto.conf using awk
Moving SPL_LDSCRIPT to Kconfig triggered an unfortunate attempt of
command substitution, as the sourced auto.conf may include $(ARCH)
which tries to execute a command 'ARCH'.
This showed up as a warning similar to the following:
  include/config/auto.conf: line 209: ARCH: command not found

This change does no longer attempt to source auto.conf, but rather
passes it through awk to retrieve the values for CONFIG_LOCALVERSION
and CONFIG_LOCALVERSION_AUTO.  This will also mitigate the risk of
unintended command substitution.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reported-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Reviewed-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
2017-08-13 17:15:08 +02:00
..
basic
coccinelle/net
kconfig
.gitignore
bin2c.c
binutils-version.sh
build-whitelist.sh scripts: config_whitelist: Handle lines with leading spaces/tabs 2017-06-29 10:01:10 -04:00
check-config.sh scripts: config_whitelist: Handle lines with leading spaces/tabs 2017-06-29 10:01:10 -04:00
checkpatch.pl
checkstack.pl avr32: Retire AVR32 for good 2017-07-06 16:17:19 -04:00
cleanpatch
config_whitelist.txt moveconfig: migrate TPL_STACK, TPL_TEXT_BASE and TPL_MAX_SIZE 2017-08-13 17:12:35 +02:00
coreboot.sed
docproc.c
dtc-version.sh
fill_scrapyard.py
gcc-stack-usage.sh
gcc-version.sh
get_default_envs.sh
get_maintainer.pl
Kbuild.include Makefile: Provide an option to select SPL or TPL 2017-04-05 16:36:58 -04:00
Kconfig
kernel-doc
ld-version.sh
Lindent
mailmapper
Makefile
Makefile.autoconf
Makefile.build
Makefile.clean
Makefile.extrawarn kbuild: update DTC warning settings for bus and node/property name checks 2017-05-15 13:00:27 -04:00
Makefile.host
Makefile.lib Makefile: Don't shadow actual error when compile ASL 2017-07-30 10:30:25 +08:00
Makefile.spl spl: Kconfig: migrate $(SPL_TPL_)LDSCRIPT to Kconfig 2017-08-13 17:12:34 +02:00
Makefile.uncmd_spl
mkmakefile
objdiff
setlocalversion scripts: setlocalversion: safely extract variables from auto.conf using awk 2017-08-13 17:15:08 +02:00
show-gnu-make