aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2018-08-14 20:36:49 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-08-22 10:21:37 -0400
commit4bf6a9af0e9107926d1fb0112e7f9acb0d798cb4 (patch)
tree421ae97e28c2ce1c9ba9306ceaac8adb8b1beb15
parente3fd9b5384f37e55261ebd261ad97951a44ece50 (diff)
kconfig: add build-only configurator targets
Add build-only targets for build_menuconfig, build_nconfig, build_xconfig, and build_gconfig. (targets must end in "config" to qualify in top-level Makefile) This allows these target to be built without execution (e.g., to look for errors or warnings) and/or to be built and checked by sparse. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--scripts/kconfig/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 8d8791069abf..f7bdcc9a6433 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -3,7 +3,8 @@
3# Kernel configuration targets 3# Kernel configuration targets
4# These targets are used from top-level makefile 4# These targets are used from top-level makefile
5 5
6PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig 6PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig \
7 build_menuconfig build_nconfig build_gconfig build_xconfig
7 8
8ifdef KBUILD_KCONFIG 9ifdef KBUILD_KCONFIG
9Kconfig := $(KBUILD_KCONFIG) 10Kconfig := $(KBUILD_KCONFIG)
@@ -33,6 +34,14 @@ config: $(obj)/conf
33nconfig: $(obj)/nconf 34nconfig: $(obj)/nconf
34 $< $(silent) $(Kconfig) 35 $< $(silent) $(Kconfig)
35 36
37build_menuconfig: $(obj)/mconf
38
39build_nconfig: $(obj)/nconf
40
41build_gconfig: $(obj)/gconf
42
43build_xconfig: $(obj)/qconf
44
36localyesconfig localmodconfig: $(obj)/conf 45localyesconfig localmodconfig: $(obj)/conf
37 $(Q)perl $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config 46 $(Q)perl $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config
38 $(Q)if [ -f .config ]; then \ 47 $(Q)if [ -f .config ]; then \