summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/kconfig/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/kconfig/Makefile b/util/kconfig/Makefile
index f6ce8181dd..a216fd3aea 100644
--- a/util/kconfig/Makefile
+++ b/util/kconfig/Makefile
@@ -76,11 +76,14 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
$(Q)rm -f $(obj)/config.pot
# --- UNUSED, ignore ----------------------------------------------------------
-PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig
+PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig savedefconfig
allnoconfig allyesconfig allmodconfig alldefconfig randconfig: $(objk)/conf
$< --$@ $(Kconfig)
+savedefconfig: $(objk)/conf
+ $< --$@=defconfig $(Kconfig)
+
defconfig: $(objk)/conf
ifeq ($(KBUILD_DEFCONFIG),)
$< -d $(Kconfig)
@@ -104,6 +107,7 @@ help:
@echo ' localyesconfig - Update current config converting local mods to core'
@echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps'
@echo ' defconfig - New config with default answer to all options'
+ @echo ' savedefconfig - Save current config as ./defconfig (minimal config)'
@echo ' allnoconfig - New config where all options are answered with no'
@echo ' allyesconfig - New config where all options are accepted with yes'
@echo ' allmodconfig - New config selecting modules when possible'