Submitter | Warren Turkal |
---|---|
Date | 2010-09-01 23:34:36 |
Message ID | <1283384076-17646-1-git-send-email-wt@penguintechs.org> |
Download | mbox | patch |
Permalink | /patch/1852/ |
State | Accepted |
Headers | show |
Comments
Hmm...I meant to add a note asking for someone to review and possibly commit this. Would someone mind. It's a simple addition to the top-level makefile to generate a cscope symbol database so that jumping around the code becomes simpler. It's something like an improved version of ctags. Thanks, wt On Wed, Sep 1, 2010 at 4:34 PM, Warren Turkal <wt@penguintechs.org> wrote: > Signed-off-by: Warren Turkal <wt@penguintechs.org> > --- > Makefile | 10 ++++++++-- > 1 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/Makefile b/Makefile > index cc3eb4e..06902ba 100644 > --- a/Makefile > +++ b/Makefile > @@ -330,6 +330,9 @@ $(obj)/build.h: .xcompile > printf "#endif\n" >> $(obj)/build.ht > mv $(obj)/build.ht $(obj)/build.h > > +cscope: > + cscope -bR > + > doxy: doxygen > doxygen: > $(DOXYGEN) documentation/Doxyfile.coreboot > @@ -354,7 +357,10 @@ clean-for-update: doxygen-clean > clean: clean-for-update > rm -f $(obj)/coreboot* .ccwrap > > -distclean: > +clean-cscope: > + rm -f cscope.out > + > +distclean: clean-cscope > rm -rf $(obj) > rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig* .ccwrap .xcompile > > @@ -383,5 +389,5 @@ $(objutil)/romcc/romcc: $(top)/util/romcc/romcc.c > @# http://www.coreboot.org/pipermail/coreboot/2010-February/055825.html > $(HOSTCC) -g $(STACK) -Wall -o $@ $< > > -.PHONY: $(PHONY) clean distclean doxygen doxy coreboot .xcompile > +.PHONY: $(PHONY) clean clean-cscope distclean doxygen doxy coreboot .xcompile > > -- > 1.7.1 > >
Patch
diff --git a/Makefile b/Makefile index cc3eb4e..06902ba 100644 --- a/Makefile +++ b/Makefile @@ -330,6 +330,9 @@ $(obj)/build.h: .xcompile printf "#endif\n" >> $(obj)/build.ht mv $(obj)/build.ht $(obj)/build.h +cscope: + cscope -bR + doxy: doxygen doxygen: $(DOXYGEN) documentation/Doxyfile.coreboot @@ -354,7 +357,10 @@ clean-for-update: doxygen-clean clean: clean-for-update rm -f $(obj)/coreboot* .ccwrap -distclean: +clean-cscope: + rm -f cscope.out + +distclean: clean-cscope rm -rf $(obj) rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig* .ccwrap .xcompile @@ -383,5 +389,5 @@ $(objutil)/romcc/romcc: $(top)/util/romcc/romcc.c @# http://www.coreboot.org/pipermail/coreboot/2010-February/055825.html $(HOSTCC) -g $(STACK) -Wall -o $@ $< -.PHONY: $(PHONY) clean distclean doxygen doxy coreboot .xcompile +.PHONY: $(PHONY) clean clean-cscope distclean doxygen doxy coreboot .xcompile
Signed-off-by: Warren Turkal <wt@penguintechs.org> --- Makefile | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)