diff options
Diffstat (limited to 'sbe/image')
-rw-r--r-- | sbe/image/Makefile | 9 | ||||
-rw-r--r-- | sbe/image/img_defs.mk | 3 |
2 files changed, 11 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 diff --git a/sbe/image/img_defs.mk b/sbe/image/img_defs.mk index 771214a9..ec78b367 100644 --- a/sbe/image/img_defs.mk +++ b/sbe/image/img_defs.mk @@ -36,6 +36,8 @@ IMAGE_SEEPROM_NAME := seeprom_main IMAGE_SBE_NAME := sbe_main IMAGE_LOADER_NAME := loader_main +SBE_SYMBOLS_NAME := sbe.syms + ifndef PPE_TYPE PPE_TYPE := std endif @@ -140,6 +142,7 @@ CC = $(PPETRACEPP_DIR)/ppetracepp $(GCC-TOOL-PREFIX)gcc AS = $(BINUTILS-TOOL-PREFIX)as AR = $(BINUTILS-TOOL-PREFIX)ar LD = $(BINUTILS-TOOL-PREFIX)ld +NM = $(BINUTILS-TOOL-PREFIX)nm OBJDUMP = $(BINUTILS-TOOL-PREFIX)objdump OBJCOPY = $(BINUTILS-TOOL-PREFIX)objcopy TCPP = $(PPETRACEPP_DIR)/ppetracepp $(GCC-TOOL-PREFIX)gcc |