Skip to contentSkip to conversation

Add make targets to build u-boot symbol references (etags, ctags, cscope)

PATCH New Martin Hicks 1 participant 1 message May 2, 2011

lore
Share & tools
lore
#0 lore raw

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.

---
 boot/u-boot/u-boot.mk |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
boot/u-boot/u-boot.mk +18 -0
index a86819b..87ee178 100644
@@ -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