diff options
| author | Randy Dunlap <rdunlap@infradead.org> | 2018-08-14 20:36:49 -0400 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-08-22 10:21:37 -0400 |
| commit | 4bf6a9af0e9107926d1fb0112e7f9acb0d798cb4 (patch) | |
| tree | 421ae97e28c2ce1c9ba9306ceaac8adb8b1beb15 /scripts | |
| parent | e3fd9b5384f37e55261ebd261ad97951a44ece50 (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>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/Makefile | 11 |
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 | ||
| 6 | PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig | 6 | PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig \ |
| 7 | build_menuconfig build_nconfig build_gconfig build_xconfig | ||
| 7 | 8 | ||
| 8 | ifdef KBUILD_KCONFIG | 9 | ifdef KBUILD_KCONFIG |
| 9 | Kconfig := $(KBUILD_KCONFIG) | 10 | Kconfig := $(KBUILD_KCONFIG) |
| @@ -33,6 +34,14 @@ config: $(obj)/conf | |||
| 33 | nconfig: $(obj)/nconf | 34 | nconfig: $(obj)/nconf |
| 34 | $< $(silent) $(Kconfig) | 35 | $< $(silent) $(Kconfig) |
| 35 | 36 | ||
| 37 | build_menuconfig: $(obj)/mconf | ||
| 38 | |||
| 39 | build_nconfig: $(obj)/nconf | ||
| 40 | |||
| 41 | build_gconfig: $(obj)/gconf | ||
| 42 | |||
| 43 | build_xconfig: $(obj)/qconf | ||
| 44 | |||
| 36 | localyesconfig localmodconfig: $(obj)/conf | 45 | localyesconfig 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 \ |
