1.1 --- a/kconfig/kconfig.mk Sat Jul 14 18:25:47 2012 +0200
1.2 +++ b/kconfig/kconfig.mk Wed Jan 09 18:52:00 2013 +0100
1.3 @@ -5,7 +5,7 @@
1.4 #-----------------------------------------------------------
1.5 # The configurators rules
1.6
1.7 -configurators = menuconfig nconfig oldconfig
1.8 +configurators = menuconfig nconfig oldconfig defconfig olddefconfig
1.9 PHONY += $(configurators)
1.10
1.11 $(configurators): config_files
1.12 @@ -27,6 +27,14 @@
1.13 @$(ECHO) " CONF $(KCONFIG_TOP)"
1.14 $(SILENT)$(CONF) --silent$@ $(KCONFIG_TOP)
1.15
1.16 +defconfig: .config
1.17 + @$(ECHO) ' GEN $@'
1.18 + $(SILENT)$(CONF) --savedefconfig=$${CONFIG-defconfig} $(KCONFIG_TOP)
1.19 +
1.20 +olddefconfig:
1.21 + @$(ECHO) ' CONF $@'
1.22 + $(SILENT)$(CONF) --defconfig=$${CONFIG-defconfig} $(KCONFIG_TOP)
1.23 +
1.24 # Always be silent, the stdout an be >.config
1.25 extractconfig:
1.26 @$(awk) 'BEGIN { dump=0; } \
1.27 @@ -50,3 +58,6 @@
1.28 @echo ' oldconfig - Update current config using a provided .config as base'
1.29 @echo ' extractconfig - Extract to stdout the configuration items from a'
1.30 @echo ' build.log file piped to stdin'
1.31 + @echo ' defconfig - Save current config as a mini-defconfig to $${CONFIG}'
1.32 + @echo ' olddefconfig - Update config from a mini-defconfig $${CONFIG}'
1.33 + @echo ' (default: $${CONFIG}=./defconfig)'