From 463dafc4a7c96d172b1ec3a514c8ef4410755ee7 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 6 Jun 2001 05:22:30 +0000 Subject: [PATCH] Added etags rule --- src/arch/alpha/config/make.base | 1 + src/arch/i386/config/make.base | 1 + util/config/NLBConfig.py | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/arch/alpha/config/make.base b/src/arch/alpha/config/make.base index a5f966c20c..de281ff79a 100644 --- a/src/arch/alpha/config/make.base +++ b/src/arch/alpha/config/make.base @@ -8,6 +8,7 @@ makerule all : linuxbios.rom ; makerule linuxbios.rom: linuxbios.strip makerom ; ./makerom -l0x310000 -i7 -v linuxbios.strip -o linuxbios.rom makerule linuxbios.strip: linuxbios ; objcopy -O binary -R .note -R .comment -S linuxbios linuxbios.strip makerule linuxbios: linuxbios.a ; @rm -f biosobject +makerule etags: $(SOURCES) ; etags $(SOURCES) addaction linuxbios $(LINK) addaction linuxbios nm -n linuxbios > linuxbios.map diff --git a/src/arch/i386/config/make.base b/src/arch/i386/config/make.base index 436d544cdb..1f4b25e8a5 100644 --- a/src/arch/i386/config/make.base +++ b/src/arch/i386/config/make.base @@ -10,6 +10,7 @@ makerule romimage : linuxbios.rom vmlinux.bin.gz.block ; cat vmlinux.bin.gz.bloc makerule linuxbios.rom: linuxbios.strip mkrom ; ./mkrom -s 64 -f -o linuxbios.rom linuxbios.strip makerule linuxbios.strip: linuxbios ; objcopy -O binary -R .note -R .comment -S linuxbios linuxbios.strip makerule linuxbios: linuxbios.a vmlinux.bin.gz ; @rm -f biosobject +makerule etags: $(SOURCES) ; etags $(SOURCES) addaction linuxbios $(LINK) addaction linuxbios nm -n linuxbios > linuxbios.map diff --git a/util/config/NLBConfig.py b/util/config/NLBConfig.py index 94b20ee8af..2e5ca42402 100644 --- a/util/config/NLBConfig.py +++ b/util/config/NLBConfig.py @@ -510,6 +510,7 @@ def writemakefile(path): for i in range(len(objectrules)): file.write("OBJECTS += %s\n" % (objectrules[i][0])) + file.write("SOURCES=\n") # print out the user defines for i in range(len(userdefines)): @@ -540,6 +541,7 @@ def writemakefile(path): source = source + ".c" file.write( "%s: %s\n" % (objectrules[i][0], source)) file.write( "%s\n" % objectrules[i][2]) + file.write("SOURCES += %s\n" % source) # print out the linux rules # these go here because some pieces depend on user rules