path: root/kconfig
diff options
authorYann E. MORIN" <>2007-07-17 21:44:33 (GMT)
committerYann E. MORIN" <>2007-07-17 21:44:33 (GMT)
commitd5db172ef497472211ba081b70b2c8aad8ccbd89 (patch)
tree7841e59e928b43995024aaac3e5f3d66bbc253cd /kconfig
parent3f4ac101f2b4392089e68b9307a7773a97d0ce6d (diff)
Revisit the extract-config way of working: ct-ng is the sole entry point to crosstool-NG, and ct-ng.extrac-config no longer exists. You now have to call "ct-ng extractconfig </path/to/your/build.log" instead.
Diffstat (limited to 'kconfig')
1 files changed, 8 insertions, 2 deletions
diff --git a/kconfig/ b/kconfig/
index 4765374..d812e82 100644
--- a/kconfig/
+++ b/kconfig/
@@ -7,7 +7,7 @@ export PROJECTVERSION=$(CT_VERSION)
KCONFIG_TOP = config/
obj = $(CT_TOP_DIR)/kconfig
-PHONY += clean help oldconfig menuconfig config defoldconfig
+PHONY += clean help oldconfig menuconfig config defoldconfig extractconfig
# Darwin (MacOS-X) does not have proper libintl support
ifeq ($(shell uname -s),Darwin)
@@ -51,7 +51,7 @@ $(CT_TOP_DIR)/config.gen/ $(TOOLS_CONFIG_FILES)
done >>$@
@echo "endmenu" >>$@
-config menuconfig oldconfig defoldconfig:: $(KCONFIG_TOP)
+config menuconfig oldconfig defoldconfig extractconfig:: $(KCONFIG_TOP)
@ln -s $(CT_LIB_DIR)/config config
@@ -68,11 +68,17 @@ oldconfig:: $(obj)/conf $(CONFIG_FILES)
defoldconfig:: $(obj)/conf $(CONFIG_FILES)
@yes "" |$< -s $(KCONFIG_TOP) >/dev/null
+extractconfig:: $(obj)/conf $(CONFIG_FILES)
+ @$(CT_LIB_DIR)/tools/ >.config
+ @$< -s $(KCONFIG_TOP)
# Help text used by make help
@echo ' config - Update current config using a line-oriented program'
@echo ' menuconfig - Update current config using a menu based program'
@echo ' oldconfig - Update current config using a provided .config as base'
+ @echo ' extractconfig - Create a new config using options extracted from a'
+ @echo ' build log piped into stdin'
# Cheesy build