1.1 --- a/kconfig/kconfig.mk Mon Mar 09 22:01:59 2009 +0000
1.2 +++ b/kconfig/kconfig.mk Wed Mar 10 22:59:00 2010 +0100
1.3 @@ -24,12 +24,29 @@
1.4 @$(ECHO) " CONF $(KCONFIG_TOP)"
1.5 $(SILENT)$< -s $(KCONFIG_TOP)
1.6
1.7 +# Always be silent, the stdout an be >.config
1.8 +extractconfig:
1.9 + @awk 'BEGIN { dump=0; } \
1.10 + dump==1 && $$0~/^\[.....\][[:space:]]+(# |)CT_/ { \
1.11 + $$1=""; \
1.12 + gsub("^[[:space:]]",""); \
1.13 + print; \
1.14 + } \
1.15 + $$0~/Dumping user-supplied crosstool-NG configuration: done in/ { \
1.16 + dump=0; \
1.17 + } \
1.18 + $$0~/Dumping user-supplied crosstool-NG configuration$$/ { \
1.19 + dump=1; \
1.20 + }'
1.21 +
1.22 #-----------------------------------------------------------
1.23 # Help text used by make help
1.24
1.25 help-config::
1.26 @echo ' menuconfig - Update current config using a menu based program'
1.27 @echo ' oldconfig - Update current config using a provided .config as base'
1.28 + @echo ' extractconfig - Extract to stdout the configuration items from a'
1.29 + @echo ' build.log file piped to stdin'
1.30
1.31 #-----------------------------------------------------------
1.32 # Hmmm! Cheesy build!