Skip to contentSkip to conversation

scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG

PATCH In review Michael Grzeschik 2 participants 2 messages Jan 8, 2013 – Feb 22, 2013 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG

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.

---
 scripts/link-vmlinux.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/link-vmlinux.sh +1 -1
index b3d907e..e62f1e0 100644
@@ -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
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 6 lines · Michael Grzeschik

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.

Applied to kbuild.git#kbuild, thanks.

Michal