From 3ff291f371fa9858426774f3732924bacb61ed1c Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Thu, 21 Aug 2014 11:44:34 +0900 Subject: kconfig: convert Kconfig helper script into a shell script Commit 51148790 added scripts/multiconfig.py written in Python 2 to adjust Kconfig for U-Boot. It has been hard for Python 3 users because Python 2 and Python 3 are not compatible with each other. We are not happy about adding a new host tool dependency (in this case, Python version dependency) for the core build process. After some discussion, we decided to use only basic tools. The script may get a bit more unreadable by shell scripting, but we believe it is worthwhile. In addition, this commit revives "_config" target that is equivalent to "_defconfig" for backwards compatibility. It is annoying to adjust various projects which use U-Boot. Signed-off-by: Masahiro Yamada Suggested-by: Igor Grinberg Tested-by: Igor Grinberg Acked-by: Simon Glass Cc: Tom Rini Cc: Jeroen Hofstee Cc: Stephen Warren --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0f82fc2..0fea5c2 100644 --- a/Makefile +++ b/Makefile @@ -458,10 +458,10 @@ KBUILD_DEFCONFIG := sandbox_defconfig export KBUILD_DEFCONFIG KBUILD_KCONFIG config: scripts_basic outputmakefile FORCE - +$(Q)$(PYTHON) $(srctree)/scripts/multiconfig.py $@ + (Q)$(MAKE) $(build)=scripts/kconfig $@ %config: scripts_basic outputmakefile FORCE - +$(Q)$(PYTHON) $(srctree)/scripts/multiconfig.py $@ + +$(Q)$(CONFIG_SHELL) $(srctree)/scripts/multiconfig.sh $@ else # =========================================================================== -- cgit v1.1