aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Bech <joakim.bech@linaro.org>2014-01-23 14:51:49 +0100
committerDan Handley <dan.handley@arm.com>2014-01-30 17:55:31 +0000
commit35fab8c979a2955bf031459ac630ad16012bcaa1 (patch)
treeacbb333feae3c1a90601b9155bc9fbf574d8dd47
parentb2187ab940239b2df1b3571d4a7f7f4201f7fc63 (diff)
Build system: Add cscope target to the Makefile
Fixes arm-software/tf-issues#15 Signed-off-by: Joakim Bech <joakim.bech@linaro.org>
-rw-r--r--.gitignore1
-rw-r--r--Makefile9
2 files changed, 9 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8d0fb07
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+cscope.*
diff --git a/Makefile b/Makefile
index c54d49e..197e01b 100644
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@ ifneq (${PLAT},all)
include bl31/bl31.mk
endif
-.PHONY: all msg_start ${PLATFORMS} dump clean realclean distclean bl1 bl2 bl31
+.PHONY: all msg_start ${PLATFORMS} dump clean realclean distclean bl1 bl2 bl31 cscope
.SUFFIXES:
@@ -179,6 +179,7 @@ clean:
realclean distclean:
@echo " REALCLEAN"
${Q}rm -rf ${BUILD_BASE}
+ ${Q}rm -f ${CURDIR}/cscope.*
dump:
@echo " OBJDUMP"
@@ -260,6 +261,11 @@ ${BUILD_PLAT}/bl31.bin: ${BUILD_BL31}/bl31.elf
@echo "Built $@ successfully"
@echo
+cscope:
+ @echo " CSCOPE"
+ ${Q}find ${CURDIR} -name "*.[chsS]" > cscope.files
+ ${Q}cscope -b -q -k
+
help:
@echo "usage: ${MAKE} PLAT=<all|${HELP_PLATFORMS}> <all|bl1|bl2|bl31|distclean|clean|dump>"
@echo ""
@@ -271,6 +277,7 @@ help:
@echo " bl2 build the BL2 binary"
@echo " bl31 build the BL31 binary"
@echo " clean Clean the build for the selected platform"
+ @echo " cscope Generate cscope index"
@echo " distclean Remove all build artifacts for all platforms"
@echo " dump Generate object file dumps"
@echo ""