diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-17 22:10:48 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-17 22:10:48 +0000 |
commit | 340c3e20301f33871c530b6095c77fe178f05e98 (patch) | |
tree | cbe5702adb3bc0e3ae80359e673144c55a98c9d9 /kconfig/Makefile | |
parent | 8d3f0a8781cc25e75db3db4a9195816e7d3da902 (diff) | |
download | crosstool-ng-340c3e20301f33871c530b6095c77fe178f05e98.tar.gz crosstool-ng-340c3e20301f33871c530b6095c77fe178f05e98.tar.bz2 crosstool-ng-340c3e20301f33871c530b6095c77fe178f05e98.zip |
Make the debug config menu a generated file.
Add a uClibc-0.9.29 patch directory with one patch (from me!).
Update the armeb-unknown-linux-uclibc sample to uClibc-0.9.29.
Some eyecandy in the gdb build process.
Diffstat (limited to 'kconfig/Makefile')
-rw-r--r-- | kconfig/Makefile | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/kconfig/Makefile b/kconfig/Makefile index 7b87a500..71737f75 100644 --- a/kconfig/Makefile +++ b/kconfig/Makefile @@ -16,16 +16,28 @@ ifneq ($(KBUILD_NO_NLS),) CFLAGS += -DKBUILD_NO_NLS endif +# Build a list of all config files +CONFIG_FILES = $(filter-out %debug.in,$(shell find $(CT_TOP_DIR)/config -type f -name '*.in')) + # Derive the project version from, well, the project version: export PROJECTVERSION=$(CT_VERSION) -menuconfig: $(obj)/mconf +$(CT_TOP_DIR)/config/debug.in: $(CONFIG_FILES) + @echo "# Debug facilities menu" >$@ + @echo "# Generated file, do not edit!!!" >>$@ + @echo "menu \"Debug facilities\"" >>$@ + @for f in $(patsubst $(CT_TOP_DIR)/%,%,$(wildcard $(CT_TOP_DIR)/config/debug/*.in)); do \ + echo "source $${f}"; \ + done >>$@ + @echo "endmenu" >>$@ + +menuconfig: $(obj)/mconf $(CT_TOP_DIR)/config/debug.in @$< $(KCONFIG_TOP) -config: $(obj)/conf +config: $(obj)/conf $(CT_TOP_DIR)/config/debug.in @$< $(KCONFIG_TOP) -oldconfig: $(obj)/conf +oldconfig: $(obj)/conf $(CT_TOP_DIR)/config/debug.in @$< -s $(KCONFIG_TOP) # Help text used by make help @@ -54,3 +66,4 @@ kconfig/conf: $(SHIPPED) kconfig/conf.c clean:: @rm -f $(wildcard kconfig/*zconf*.c) kconfig/{conf,mconf} + @rm -f "$(CT_TOP_DIR)/config/debug.in" |