From 1dd44e3ee176c04ebdce9fbbbf6516502486bbb8 Mon Sep 17 00:00:00 2001 From: Derk Rembold Date: Thu, 18 Jun 2015 15:48:22 +0200 Subject: add seeprom normalization and fixed binary generation Change-Id: Ie65938a2735028019e6a460060d97179efec6a7b Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/18676 Reviewed-by: Derk Rembold Tested-by: Derk Rembold --- sbe/image/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'sbe/image/Makefile') diff --git a/sbe/image/Makefile b/sbe/image/Makefile index a895c1b8..13e142bc 100644 --- a/sbe/image/Makefile +++ b/sbe/image/Makefile @@ -75,6 +75,8 @@ LIB_DIRS += -L$(OBJDIR)/perv PERVLIB := $(OBJDIR)/perv/libperv.a LLIBS += -lperv +SBE_TOOLS := $(TOOLS_IMAGE_DIR)/sbe_xip_tool $(TOOLS_IMAGE_DIR)/sbe_default_tool + LINK_OBJS = $(OBJS) $(SBEFWLIB) $(PKLIB) $(FAPI2LIB) $(CACHELIB) $(CORELIB) $(HWPLIB) $(P2PLIB) $(PERVLIB) # Define the objects @@ -116,7 +118,7 @@ $(LINK_SCRIPT_SBE): linksbe.cmd $(CPP) -E -x c++ -P $(DEFS) linksbe.cmd -o $(LINK_SCRIPT_SBE) -all: $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin $(OBJDIR)/$(IMAGE_SBE_NAME).bin +all: $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin $(OBJDIR)/$(IMAGE_SBE_NAME).bin $(SBE_TOOLS) normalize $(OBJDIR)/fixed.bin #Create an obj directory if needed @@ -197,6 +199,15 @@ $(P2PLIB): $(MAKE) -I $(IMAGE_SRCDIR) -C $(P2P_SRCDIR) -f Makefile endif +$(SBE_TOOLS): + $(MAKE) -C $(TOOLS_IMAGE_DIR) -f Makefile + +normalize: $(SBE_TOOLS) $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin + $(TOOLS_IMAGE_DIR)/sbe_xip_tool $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin normalize + +$(OBJDIR)/fixed.bin: $(OBJDIR)/$(IMAGE_SEEPROM_NAME).out + /afs/bb/proj/cte/tools/ppetools/prod/powerpc-eabi/bin/objcopy -O binary --only-section=.fixed $(OBJDIR)/$(IMAGE_SEEPROM_NAME).out $(OBJDIR)/fixed.bin + # collect all of the trace hash files for this image into a single trexStringFile .PHONY : tracehash tracehash: -- cgit v1.2.1