scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Tue, 8 Jan 2013 18:05:26 +0000 (19:05 +0100)
committerMichal Marek <mmarek@suse.cz>
Fri, 22 Feb 2013 09:37:18 +0000 (10:37 +0100)
Its possible to superseed the config file with KCONFIG_CONFIG and have
completely no .config in the tree. The current script is sourcing
.config in every case, so the kernel will never build succesfully. This
patch fixes that issue by sourcing KCONFIG_CONFIG instead.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/link-vmlinux.sh

index b3d907eb93a91e7437ec8be8dac4248990eaf1e0..e62f1e000a7b5148167e76c128a6a08150804e24 100644 (file)
@@ -132,7 +132,7 @@ if [ "$1" = "clean" ]; then
 fi
 
 # We need access to CONFIG_ symbols
-. ./.config
+. ${KCONFIG_CONFIG}
 
 #link vmlinux.o
 info LD vmlinux.o