u-boot/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 kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
.gitignore cmd: add a new command "config" to show .config contents 2017-02-08 15:56:26 -05:00
Kbuild.include Makefile: Provide an option to select SPL or TPL 2017-04-05 16:36:58 -04:00
Kconfig cmd: add a new command "config" to show .config contents 2017-02-08 15:56:26 -05:00
Lindent
Makefile cmd: add a new command "config" to show .config contents 2017-02-08 15:56:26 -05:00
Makefile.autoconf kbuild: add include linux/kconfig.h in config.h 2017-01-28 08:47:42 -05:00
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
bin2c.c scripts: import bin2c.c from Linux 4.10-rc6 2017-02-08 15:56:19 -05:00
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 checkpatch: Port spelling to checkpatch 2017-02-08 15:56:31 -05:00
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 scripts: Add script to extract default environment 2016-10-06 21:00:53 -04:00
get_maintainer.pl
kernel-doc
ld-version.sh
mailmapper
mkmakefile
objdiff
setlocalversion scripts: setlocalversion: safely extract variables from auto.conf using awk 2017-08-13 17:15:08 +02:00
show-gnu-make