mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 05:43:09 +00:00
2aa92300fd
After commit 15f57d843296e244487ac0845a73247f9d6749b8, the defconfig target has been renamed into savedefconfig, and olddefconfig into defconfig. However, the help text and man page was not updated. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> [yann.morin.1998@free.fr: rename CONFIG -> DEFCONFIG] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <0c1dff89c9ee1672693f.1374042343@BEANTN0L019720> Patchwork-Id: 259601
64 lines
2.6 KiB
Makefile
64 lines
2.6 KiB
Makefile
# ===========================================================================
|
|
# crosstool-NG configuration targets
|
|
# These targets are used from top-level makefile
|
|
|
|
#-----------------------------------------------------------
|
|
# The configurators rules
|
|
|
|
configurators = menuconfig nconfig oldconfig savedefconfig defconfig
|
|
PHONY += $(configurators)
|
|
|
|
$(configurators): config_files
|
|
|
|
# We need CONF for savedefconfig in scripts/saveSample.sh
|
|
export CONF := $(CT_LIB_DIR)/kconfig/conf
|
|
MCONF := $(CT_LIB_DIR)/kconfig/mconf
|
|
NCONF := $(CT_LIB_DIR)/kconfig/nconf
|
|
|
|
menuconfig:
|
|
@$(ECHO) " CONF $(KCONFIG_TOP)"
|
|
$(SILENT)$(MCONF) $(KCONFIG_TOP)
|
|
|
|
nconfig:
|
|
@$(ECHO) " CONF $(KCONFIG_TOP)"
|
|
$(SILENT)$(NCONF) $(KCONFIG_TOP)
|
|
|
|
oldconfig: .config
|
|
@$(ECHO) " CONF $(KCONFIG_TOP)"
|
|
$(SILENT)$(CONF) --silent$@ $(KCONFIG_TOP)
|
|
|
|
savedefconfig: .config
|
|
@$(ECHO) ' GEN $@'
|
|
$(SILENT)$(CONF) --savedefconfig=$${DEFCONFIG-defconfig} $(KCONFIG_TOP)
|
|
|
|
defconfig:
|
|
@$(ECHO) ' CONF $@'
|
|
$(SILENT)$(CONF) --defconfig=$${DEFCONFIG-defconfig} $(KCONFIG_TOP)
|
|
|
|
# Always be silent, the stdout an be >.config
|
|
extractconfig:
|
|
@$(awk) 'BEGIN { dump=0; } \
|
|
dump==1 && $$0~/^\[.....\][[:space:]]+(# |)CT_/ { \
|
|
$$1=""; \
|
|
gsub("^[[:space:]]",""); \
|
|
print; \
|
|
} \
|
|
$$0~/Dumping user-supplied crosstool-NG configuration: done in/ { \
|
|
dump=0; \
|
|
} \
|
|
$$0~/Dumping user-supplied crosstool-NG configuration$$/ { \
|
|
dump=1; \
|
|
}'
|
|
|
|
#-----------------------------------------------------------
|
|
# Help text used by make help
|
|
|
|
help-config::
|
|
@echo ' menuconfig - Update current config using a menu based program'
|
|
@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 ' savedefconfig - Save current config as a mini-defconfig to $${DEFCONFIG}'
|
|
@echo ' defconfig - Update config from a mini-defconfig $${DEFCONFIG}'
|
|
@echo ' (default: $${DEFCONFIG}=./defconfig)'
|