Author: rminnich Date: 2008-10-13 20:38:50 +0200 (Mon, 13 Oct 2008) New Revision: 919
Added: coreboot-v3/util/mkdep Modified: coreboot-v3/arch/x86/Makefile Log: I need this to get my work done and there were no better proposals. I did change the /bin/bash to /bin/sh per the comments. Signed-off-by: Ronald G. Minnich <[EMAIL PROTECTED]> Acked-by: Ronald G. Minnich <[EMAIL PROTECTED]> Modified: coreboot-v3/arch/x86/Makefile =================================================================== --- coreboot-v3/arch/x86/Makefile 2008-10-12 00:51:10 UTC (rev 918) +++ coreboot-v3/arch/x86/Makefile 2008-10-13 18:38:50 UTC (rev 919) @@ -23,7 +23,7 @@ ifeq ($(CONFIG_ARCH_X86),y) INITCFLAGS := $(CFLAGS) -I$(src)/include/arch/x86 -I$(src)/include \ - -I$(obj) -I$(src)/mainboard/$(MAINBOARDDIR)/-fno-builtin + -I$(obj) -I$(src)/mainboard/$(MAINBOARDDIR)/ -fno-builtin SILENT := >/dev/null 2>&1 @@ -279,3 +279,17 @@ $(Q)$(NM) $(obj)/coreboot.initram | sort -u > $(obj)/coreboot.initram.map endif + +# +# For Kscope +# + +kscope: $(obj)/mainboard/$(MAINBOARDDIR)/kscope/cscope.files + kscope $(obj)/mainboard/$(MAINBOARDDIR)/kscope +ALLSRC=$(STAGE0_SRC) $(INITRAM_SRC) $(STAGE2_SRC) +$(obj)/mainboard/$(MAINBOARDDIR)/kscope/cscope.files: $(ALLSRC) + $(Q)mkdir -p $(obj)/mainboard/$(MAINBOARDDIR)/kscope + $(Q)cp cscope.proj $(obj)/mainboard/$(MAINBOARDDIR)/kscope + $(Q)sh util/mkdep $@ $(INITCFLAGS) "--" $(ALLSRC) +# $(Q)sort -u -o $@ $@ + Added: coreboot-v3/util/mkdep =================================================================== --- coreboot-v3/util/mkdep (rev 0) +++ coreboot-v3/util/mkdep 2008-10-13 18:38:50 UTC (rev 919) @@ -0,0 +1,16 @@ +#!/bin/sh +out=$1 +shift +o="" +while [ "$1" != "--" ]; do +o="$o $1" +shift +done +shift +p=`pwd` +while [ "$1" ] ; do +echo $1 >>${out} +cpp -M -m32 $o $1 | sed 's/.*://' | sed 's/^ *//g' | tr ' ' '\n' | tr '\\' ' ' |sed "s,^include,${p}/include," >>${out} +shift +done +sort -o ${out} -u ${out} -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot