diff -r 4ccfca658d9b -r df33992f9614 kconfig/kconfig.mk --- a/kconfig/kconfig.mk Sat Jul 14 18:25:47 2012 +0200 +++ b/kconfig/kconfig.mk Fri Sep 21 16:26:10 2012 +0200 @@ -5,7 +5,7 @@ #----------------------------------------------------------- # The configurators rules -configurators = menuconfig nconfig oldconfig +configurators = menuconfig nconfig oldconfig defconfig olddefconfig PHONY += $(configurators) $(configurators): config_files @@ -27,6 +27,14 @@ @$(ECHO) " CONF $(KCONFIG_TOP)" $(SILENT)$(CONF) --silent$@ $(KCONFIG_TOP) +defconfig: .config + @$(ECHO) ' GEN $@' + $(SILENT)$(CONF) --savedefconfig=$${CONFIG-defconfig} $(KCONFIG_TOP) + +olddefconfig: + @$(ECHO) ' CONF $@' + $(SILENT)$(CONF) --defconfig=$${CONFIG-defconfig} $(KCONFIG_TOP) + # Always be silent, the stdout an be >.config extractconfig: @$(awk) 'BEGIN { dump=0; } \ @@ -50,3 +58,6 @@ @echo ' oldconfig - Update current config using a provided .config as base' @echo ' extractconfig - Extract to stdout the configuration items from a' @echo ' build.log file piped to stdin' + @echo ' defconfig - Save current config as a mini-defconfig to $${CONFIG}' + @echo ' olddefconfig - Update config from a mini-defconfig $${CONFIG}' + @echo ' (default: $${CONFIG}=./defconfig)'