mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG
@ 2013-01-08 18:05 Michael Grzeschik
  2013-02-22  9:51 ` Michal Marek
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Grzeschik @ 2013-01-08 18:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: mmarek, sam, james.hogan, lliubbo

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>
---
 scripts/link-vmlinux.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index b3d907e..e62f1e0 100644
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -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
-- 
1.7.10.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG
  2013-01-08 18:05 [PATCH] scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG Michael Grzeschik
@ 2013-02-22  9:51 ` Michal Marek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2013-02-22  9:51 UTC (permalink / raw)
  To: Michael Grzeschik; +Cc: linux-kernel, sam, james.hogan, lliubbo

On Tue, Jan 08, 2013 at 07:05:26PM +0100, Michael Grzeschik wrote:
> 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>

Applied to kbuild.git#kbuild, thanks.

Michal

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-22  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-08 18:05 [PATCH] scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG Michael Grzeschik
2013-02-22  9:51 ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®