mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
Build system: Add cscope target to the Makefile
Fixes arm-software/tf-issues#15 Signed-off-by: Joakim Bech <joakim.bech@linaro.org>
This commit is contained in:
parent
b2187ab940
commit
35fab8c979
2 changed files with 9 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
cscope.*
|
9
Makefile
9
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 ""
|
||||
|
|
Loading…
Add table
Reference in a new issue