1.1 --- a/kconfig/kconfig.mk Sun Jul 15 09:09:04 2007 +0000
1.2 +++ b/kconfig/kconfig.mk Sat Jul 21 20:31:26 2007 +0000
1.3 @@ -7,7 +7,7 @@
1.4
1.5 KCONFIG_TOP = config/config.in
1.6 obj = $(CT_TOP_DIR)/kconfig
1.7 -PHONY += clean help oldconfig menuconfig config defoldconfig
1.8 +PHONY += clean help oldconfig menuconfig config defoldconfig extractconfig
1.9
1.10 # Darwin (MacOS-X) does not have proper libintl support
1.11 ifeq ($(shell uname -s),Darwin)
1.12 @@ -51,7 +51,7 @@
1.13 done >>$@
1.14 @echo "endmenu" >>$@
1.15
1.16 -config menuconfig oldconfig defoldconfig:: $(KCONFIG_TOP)
1.17 +config menuconfig oldconfig defoldconfig extractconfig:: $(KCONFIG_TOP)
1.18
1.19 $(KCONFIG_TOP):
1.20 @ln -s $(CT_LIB_DIR)/config config
1.21 @@ -68,11 +68,17 @@
1.22 defoldconfig:: $(obj)/conf $(CONFIG_FILES)
1.23 @yes "" |$< -s $(KCONFIG_TOP) >/dev/null
1.24
1.25 +extractconfig:: $(obj)/conf $(CONFIG_FILES)
1.26 + @$(CT_LIB_DIR)/tools/extract-config.sh >.config
1.27 + @$< -s $(KCONFIG_TOP)
1.28 +
1.29 # Help text used by make help
1.30 help-config::
1.31 @echo ' config - Update current config using a line-oriented program'
1.32 @echo ' menuconfig - Update current config using a menu based program'
1.33 @echo ' oldconfig - Update current config using a provided .config as base'
1.34 + @echo ' extractconfig - Create a new config using options extracted from a'
1.35 + @echo ' build log piped into stdin'
1.36
1.37 # Cheesy build
1.38