kconfig: rename the defconfig and olddefconfig targets

What 'defconfig' really does is save the current .config to a defconfig,
so it is better named 'savedefconfig' (as other projects do).

What 'olddefconfig' really does is create a .config from a defconfig,
so rename it to 'defconfig' (as other projects do, too).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
Yann E. MORIN" 2013-01-22 00:34:15 +01:00
parent 27c4240b82
commit 5e9d4ba24f
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ _ct_ng () {
stop_steps=$(echo "${steps}" |sed -r -e 's/(^| )/+\1/;')
actions='help menuconfig oldconfig saveconfig extractconfig
defconfig olddefconfig
defconfig savedefconfig
build build. build-all build-all.
wiki-samples list-samples list-samples-short list-steps
show-tuple show-all show-config

View File

@ -5,7 +5,7 @@
#-----------------------------------------------------------
# The configurators rules
configurators = menuconfig nconfig oldconfig defconfig olddefconfig
configurators = menuconfig nconfig oldconfig savedefconfig defconfig
PHONY += $(configurators)
$(configurators): config_files
@ -27,11 +27,11 @@ oldconfig: .config
@$(ECHO) " CONF $(KCONFIG_TOP)"
$(SILENT)$(CONF) --silent$@ $(KCONFIG_TOP)
defconfig: .config
savedefconfig: .config
@$(ECHO) ' GEN $@'
$(SILENT)$(CONF) --savedefconfig=$${CONFIG-defconfig} $(KCONFIG_TOP)
olddefconfig:
defconfig:
@$(ECHO) ' CONF $@'
$(SILENT)$(CONF) --defconfig=$${CONFIG-defconfig} $(KCONFIG_TOP)