Add make targets to build u-boot symbol references (etags, ctags, cscope)
PATCH 1/1 Add make targets to build u-boot symbol references (etags, ctags, cscope)
This is handy because it calls the makefile with the correct ARCH and target config to eliminate all of the symbols that are unrelated to your u-boot configuration.
Signed-off-by Martin Hicks <[email protected]>
--- boot/u-boot/u-boot.mk | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-)
boot/u-boot/u-boot.mk +18 -0
@@ -187,6 +187,24 @@ u-boot-unpacked: $(U_BOOT_DIR)/.patched u-boot-configured: $(U_BOOT_DIR)/.header_modified +u-boot-cscope: u-boot-configured + -$(TARGET_CONFIGURE_OPTS) \ + $(U_BOOT_CONFIGURE_OPTS) \ + CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" ARCH=$(U_BOOT_ARCH) \ + $(MAKE) -C $(U_BOOT_DIR) cscope + +u-boot-ctags: u-boot-configured + -$(TARGET_CONFIGURE_OPTS) \ + $(U_BOOT_CONFIGURE_OPTS) \ + CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" ARCH=$(U_BOOT_ARCH) \ + $(MAKE) -C $(U_BOOT_DIR) ctags + +u-boot-etags: u-boot-configured + -$(TARGET_CONFIGURE_OPTS) \ + $(U_BOOT_CONFIGURE_OPTS) \ + CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" ARCH=$(U_BOOT_ARCH) \ + $(MAKE) -C $(U_BOOT_DIR) etags + ############################################################# # # Toplevel Makefile options
Signature · 1 line
1.5.6.5