1 # ===========================================================================
2 # crosstool-NG configuration targets
3 # These targets are used from top-level makefile
5 #-----------------------------------------------------------
6 # The configurators rules
8 configurators = menuconfig nconfig oldconfig
9 PHONY += $(configurators)
11 $(configurators): config_files
13 # We need CONF for savedefconfig in scripts/saveSample.sh
14 export CONF := $(CT_LIB_DIR)/kconfig/conf
15 MCONF := $(CT_LIB_DIR)/kconfig/mconf
16 NCONF := $(CT_LIB_DIR)/kconfig/nconf
19 @$(ECHO) " CONF $(KCONFIG_TOP)"
20 $(SILENT)$(MCONF) $(KCONFIG_TOP)
23 @$(ECHO) " CONF $(KCONFIG_TOP)"
24 $(SILENT)$(NCONF) $(KCONFIG_TOP)
27 @$(ECHO) " CONF $(KCONFIG_TOP)"
28 $(SILENT)$(CONF) --silent$@ $(KCONFIG_TOP)
30 # Always be silent, the stdout an be >.config
32 @$(awk) 'BEGIN { dump=0; } \
33 dump==1 && $$0~/^\[.....\][[:space:]]+(# |)CT_/ { \
35 gsub("^[[:space:]]",""); \
38 $$0~/Dumping user-supplied crosstool-NG configuration: done in/ { \
41 $$0~/Dumping user-supplied crosstool-NG configuration$$/ { \
45 #-----------------------------------------------------------
46 # Help text used by make help
49 @echo ' menuconfig - Update current config using a menu based program'
50 @echo ' oldconfig - Update current config using a provided .config as base'
51 @echo ' extractconfig - Extract to stdout the configuration items from a'
52 @echo ' build.log file piped to stdin'