summaryrefslogtreecommitdiffstats
path: root/sbe/image/Makefile
diff options
context:
space:
mode:
authorMartin Peschke <mpeschke@de.ibm.com>2015-09-09 11:40:23 +0200
committerMartin Peschke <mpeschke@de.ibm.com>2015-09-09 05:17:31 -0500
commit2c4e7135ecf9ac79ca0b925c95a16d96f3b4c025 (patch)
tree931abfff5151c7b482d05da07d47cd69c9000c80 /sbe/image/Makefile
parent6b8b5cd3fd404afa693358125c1659a74f21b7e3 (diff)
downloadtalos-sbe-2c4e7135ecf9ac79ca0b925c95a16d96f3b4c025.tar.gz
talos-sbe-2c4e7135ecf9ac79ca0b925c95a16d96f3b4c025.zip
add symbol file
currently contains nm output for: - seeprom object file - base loader object file - base section object file second version of this patch renames the output file to sbe.syms and defines the name in the appropriate .mk file Change-Id: Icec58009d334763b28fec2cfa6cbb0e17abecdea Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20387 Tested-by: Jenkins Server Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
Diffstat (limited to 'sbe/image/Makefile')
-rw-r--r--sbe/image/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/sbe/image/Makefile b/sbe/image/Makefile
index 24fa27b4..5c742b84 100644
--- a/sbe/image/Makefile
+++ b/sbe/image/Makefile
@@ -168,7 +168,9 @@ all:
@echo "Makefile option error: ALL is not compatible with FAPI2_test"
endif
-all: $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin $(OBJDIR)/$(IMAGE_SBE_NAME).bin $(OBJDIR)/$(IMAGE_LOADER_NAME).bin $(SBE_TOOLS) normalize defaultset $(OBJDIR)/fixed.bin appendbase appendloader add_entry_offset add_entry_address_sbe
+.PHONY: all normalize defaultset appendbase appendloader add_entry_offset add_entry_address_sbe symbols
+
+all: $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin $(OBJDIR)/$(IMAGE_SBE_NAME).bin $(OBJDIR)/$(IMAGE_LOADER_NAME).bin $(SBE_TOOLS) normalize defaultset $(OBJDIR)/fixed.bin appendbase appendloader add_entry_offset add_entry_address_sbe symbols
add_entry_offset: $(OBJDIR)/$(IMAGE_SEEPROM_NAME).out
$(TOOLS_IMAGE_DIR)/sbe_xip_tool $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin set entry_offset 0x`nm $(OBJDIR)/$(IMAGE_SEEPROM_NAME).out | grep sbe_loader | cut -f 1 -d " "`
@@ -176,6 +178,11 @@ add_entry_offset: $(OBJDIR)/$(IMAGE_SEEPROM_NAME).out
add_entry_address_sbe: $(OBJDIR)/$(IMAGE_LOADER_NAME).out
$(TOOLS_IMAGE_DIR)/sbe_xip_tool $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin set entry_address_sbe 0x`nm $(OBJDIR)/$(IMAGE_LOADER_NAME).out | grep base_loader | cut -f 1 -d " "`
+symbols: $(OBJDIR)/$(IMAGE_SEEPROM_NAME).out $(OBJDIR)/$(IMAGE_LOADER_NAME).out $(OBJDIR)/$(IMAGE_SBE_NAME).out
+ $(NM) $(OBJDIR)/$(IMAGE_SEEPROM_NAME).out > $(OBJDIR)/$(SBE_SYMBOLS_NAME)
+ $(NM) $(OBJDIR)/$(IMAGE_LOADER_NAME).out >> $(OBJDIR)/$(SBE_SYMBOLS_NAME)
+ $(NM) $(OBJDIR)/$(IMAGE_SBE_NAME).out >> $(OBJDIR)/$(SBE_SYMBOLS_NAME)
+
seeprom: $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin $(SBE_TOOLS) normalize defaultset $(OBJDIR)/fixed.bin
$(TOOLS_IMAGE_DIR)/sbe_xip_tool $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin report > $(OBJDIR)/$(IMAGE_SEEPROM_NAME).rpt
OpenPOWER on IntegriCloud