summaryrefslogtreecommitdiffstats
path: root/sbe/image/Makefile
diff options
context:
space:
mode:
authorSachin Gupta <sgupta2m@in.ibm.com>2015-12-01 05:17:22 -0600
committerAmit J. Tendolkar <amit.tendolkar@in.ibm.com>2015-12-08 00:52:20 -0600
commitb50b79a16f7face41d9d4fbb5983af76c7d3de26 (patch)
treec33f7d1900a7aef4a1986ad7c164e5b215b5e3ba /sbe/image/Makefile
parentfaf39456308c7d90bb1cd5d5f88c2b7136a81923 (diff)
downloadtalos-sbe-b50b79a16f7face41d9d4fbb5983af76c7d3de26.tar.gz
talos-sbe-b50b79a16f7face41d9d4fbb5983af76c7d3de26.zip
Workaround for fixed section in PIBMEM
Change-Id: I0fc1891dbb6546a05569b7a13101be65d57b2991 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22361 Tested-by: Jenkins Server Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com> Reviewed-by: Amit J. Tendolkar <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'sbe/image/Makefile')
-rw-r--r--sbe/image/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/sbe/image/Makefile b/sbe/image/Makefile
index a5af22c9..d6cbd799 100644
--- a/sbe/image/Makefile
+++ b/sbe/image/Makefile
@@ -115,7 +115,10 @@ $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin $(OBJDIR)/$(IMAGE_SEEPROM_NAME).dis: $(OBJDI
ifndef FAPI2_TEST
# This is the production build of the SEEPROM
#create a linked ELF executable
-$(OBJDIR)/$(IMAGE_SEEPROM_NAME).out: buildInfo $(LINK_OBJS) $(LINK_SCRIPT_SEEPROM)
+# TODO via RTC 142365
+# Remove pibMemAttrSet from this file once we have support to copy fixed section
+# from SEEPROM to PIBMEM.
+$(OBJDIR)/$(IMAGE_SEEPROM_NAME).out: pibMemAttrSet buildInfo $(LINK_OBJS) $(LINK_SCRIPT_SEEPROM)
@echo ">>>>> Production Build <<<<<<"
$(LD) -e __system_reset -T$(LINK_SCRIPT_SEEPROM) -Map $(OBJDIR)/$(IMAGE_SEEPROM_NAME).map -Bstatic -o $(OBJDIR)/$(IMAGE_SEEPROM_NAME).out $(OBJS) $(LIB_DIRS) -leabi -lmath
else
@@ -139,7 +142,7 @@ $(OBJDIR)/$(IMAGE_SBE_NAME).bin $(OBJDIR)/$(IMAGE_SBE_NAME).dis: $(OBJDIR)/$(IMA
$(NM) $< > $(OBJDIR)/$(IMAGE_SBE_NAME).syms
# create a linked ELF executable
-$(OBJDIR)/$(IMAGE_SBE_NAME).out: buildInfo $(OBJDIR)/base_sbe_fixed.o $(LINK_OBJS) $(LINK_SCRIPT_SBE)
+$(OBJDIR)/$(IMAGE_SBE_NAME).out: pibMemAttrSet buildInfo $(OBJDIR)/base_sbe_fixed.o $(LINK_OBJS) $(LINK_SCRIPT_SBE)
$(LD) -e __system_reset -T$(LINK_SCRIPT_SBE) -Map $(OBJDIR)/$(IMAGE_SBE_NAME).map -Bstatic -o $(OBJDIR)/$(IMAGE_SBE_NAME).out $(LIB_DIRS) $(OBJDIR)/base_sbe_fixed.o --start-group $(LLIBS) -leabi -lmath --end-group
# pass the link command file through the C preprocessor to evaluate macros and remove comments
@@ -209,7 +212,7 @@ $(OBJDIR):
$(TOOLS_ATTR_DIR)/ppeCreateIfAttrService.pl $(PPE_FAPI2_DIR)/include $(IMPORT_XML_DIR)/p9_ppe_attributes.xml $(ATTRFILES)
mkdir -p $(OBJDIR)
-.PHONY: clean topfixedheaders $(PKLIB) $(P2PLIB) $(PPELIB) $(FAPI2LIB) $(CACHELIB) $(CORELIB) $(PERVLIB) $(NESTLIB) $(HWPLIB) buildInfo
+.PHONY: clean topfixedheaders $(PKLIB) $(P2PLIB) $(PPELIB) $(FAPI2LIB) $(CACHELIB) $(CORELIB) $(PERVLIB) $(NESTLIB) $(HWPLIB) buildInfo pibMemAttrSet
#errxml: topfixedheaders attrids platattr attrserv
@@ -326,6 +329,9 @@ tracehash:
mkdir -p $(OBJDIR)
$(THASH) -c -d $(OBJDIR) -s $(OBJDIR)/trexStringFile
+pibMemAttrSet:
+ $(TOOLS_IMAGE_DIR)/ppeSetFixedPibmem.pl $(IMPORT_XML_DIR)/p9_ppe_attributes.xml $(ATTRFILES)
+
#clean the kernel directory first, then the application level clean
clean:
rm -fr $(OBJDIR)
OpenPOWER on IntegriCloud