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 <firstname.lastname@example.org>
Reported-by: Andy Yan <email@example.com>
Reviewed-by: Tom Rini <firstname.lastname@example.org>
Reviewed-by: Klaus Goger <email@example.com>
Reviewed-by: Jakob Unterwurzacher <firstname.lastname@example.org>