From: Masahiro Yamada <yamada.m@jp.panasonic.com>
Date: Wed, 3 Sep 2014 20:41:34 +0000 (+0900)
Subject: kconfig: fix a bug of "make config"
X-Git-Tag: v2014.10-rc3~93
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f458e3559b4a77b72c2143b6c61e0bfbf07035bc;p=oweals%2Fu-boot.git

kconfig: fix a bug of "make config"

Since 3ff291f371fa9858426774f3732924bacb61ed1c
(kconfig: convert Kconfig helper script into a shell script),
"make config" is not working because of a missing '$' before '(Q)'.

Besides, "make config" should be invoked via scripts/multiconfig.sh
to avoid a warning message:
Kconfig:11:warning: environment variable KCONFIG_OBJDIR undefined

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
---

diff --git a/Makefile b/Makefile
index 62b202fb11..1fccd0b7e2 100644
--- a/Makefile
+++ b/Makefile
@@ -458,7 +458,7 @@ KBUILD_DEFCONFIG := sandbox_defconfig
 export KBUILD_DEFCONFIG KBUILD_KCONFIG
 
 config: scripts_basic outputmakefile FORCE
-	(Q)$(MAKE) $(build)=scripts/kconfig $@
+	+$(Q)$(CONFIG_SHELL) $(srctree)/scripts/multiconfig.sh $@
 
 %config: scripts_basic outputmakefile FORCE
 	+$(Q)$(CONFIG_SHELL) $(srctree)/scripts/multiconfig.sh $@