Commit ffda586f authored by Li Yang's avatar Li Yang Committed by Wolfgang Denk
Browse files

add cscope build target

Add cscope build target to generate cscope database for code browsing.
Signed-off-by: default avatarLi Yang <>
parent f655adef
......@@ -400,6 +400,10 @@ tags ctags:
etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
-name '*.[ch]' -print`
find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
> cscope.files
cscope -b -q -k
$(obj) $(obj)u-boot
@$(NM) $< | \
......@@ -427,7 +431,7 @@ else # !
all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
dep tags ctags etags $(obj)
dep tags ctags etags cscope $(obj)
@echo "System not configured - see README" >&2
@ exit 1
endif #
......@@ -2929,7 +2933,8 @@ clobber: clean
-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
-print0 \
| xargs -0 rm -f
@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS
@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
@rm -fr $(obj)*.*~
@rm -f $(obj)u-boot $(obj) $(obj)u-boot.hex $(ALL)
@rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment