From 340c3e20301f33871c530b6095c77fe178f05e98 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 17 May 2007 22:10:48 +0000 Subject: 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. --- kconfig/Makefile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'kconfig/Makefile') 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" -- cgit v1.2.3