summaryrefslogtreecommitdiffstats
path: root/sbe/image/Makefile
diff options
context:
space:
mode:
authorSachin Gupta <sgupta2m@in.ibm.com>2015-07-14 05:18:40 -0500
committerJennifer A. Stofer <stofer@us.ibm.com>2015-07-28 15:21:17 -0500
commitd553cfa7b58b4529e72557b219b87319c11da043 (patch)
tree153ee4403caa10105a1e5280c4916076f659b183 /sbe/image/Makefile
parent8fd7df0b85039d5dc5f8a23f0d80cbce7d30a600 (diff)
downloadtalos-sbe-d553cfa7b58b4529e72557b219b87319c11da043.tar.gz
talos-sbe-d553cfa7b58b4529e72557b219b87319c11da043.zip
Add SBE support for per directory error XML files
- Added parseErrorInfo.pl Change-Id: I263797070f09d0b869f3de52916049574d272cb6 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/18819 Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Tested-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'sbe/image/Makefile')
-rw-r--r--sbe/image/Makefile27
1 files changed, 26 insertions, 1 deletions
diff --git a/sbe/image/Makefile b/sbe/image/Makefile
index 576602db..82e9e703 100644
--- a/sbe/image/Makefile
+++ b/sbe/image/Makefile
@@ -55,6 +55,7 @@ HWPLIB_MAKE_DIR := $(HWPLIB_SRCDIR)
LIB_DIRS += -L$(OBJDIR)/lib
HWPLIB := $(OBJDIR)/libcommon.a
LLIBS += -lcommon
+include $(HWPLIB_SRCDIR)/libcommonerrors.mk
# Common Cache HWP Exit library
CACHE_MAKE_DIR := $(CACHE_SRCDIR)
@@ -74,6 +75,7 @@ PERV_MAKE_DIR := $(PERV_SRCDIR)
LIB_DIRS += -L$(OBJDIR)/perv
PERVLIB := $(OBJDIR)/perv/libperv.a
LLIBS += -lperv
+include $(PERV_SRCDIR)/perverrors.mk
# Common Nest libraries
NEST_MAKE_DIR := $(NEST_SRCDIR)
@@ -211,6 +213,8 @@ $(NESTLIB):
$(MAKE) -I $(IMAGE_SRCDIR) -C $(NEST_MAKE_DIR) -f Makefile
#Build the comming HWP lib procedures
+
+#Build the HWP lib procedures
$(HWPLIB):
@echo "Processing HWP lib makefile"
$(MAKE) -I $(IMAGE_SRCDIR) -C $(HWPLIB_MAKE_DIR) -f Makefile
@@ -234,6 +238,27 @@ normalize: $(SBE_TOOLS) $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin
defaultset: $(SBE_TOOLS) $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin normalize
$(TOOLS_IMAGE_DIR)/ppeSetFixed.pl $(TOOLS_IMAGE_DIR) $(BASE_OBJDIR)/$(IMAGE_SEEPROM_NAME).bin $(IMPORT_XML_DIR)/p9_ppe_attributes.xml $(ATTRFILES)
+# Build hwp_error_info.H. If the script fails then print the contents of
+# the header and then delete whatever garbage the script left to force it to
+# be built again.
+#
+# -*- HACK -*- Use local version of parseErrorInfo.pl until FW team
+# updates the standard version to work in assembly. The source for this
+# script is : $(FAPI)/capi/scripts/parseErrorInfo.pl
+
+.PHONY : xml
+
+xml: $(FAPI_RC)
+
+$(FAPI_RC): $(TOOLS_ATTR_DIR)/parseErrorInfo.pl $(ERROR_XML_FILES)
+ $(TOOLS_ATTR_DIR)/parseErrorInfo.pl --empty-ffdc-classes --output-dir=. $(ERROR_XML_FILES)
+# if [ $$? -ne 0 ]; then \
+# echo "Build of hwp_error_info.H failed; Current contents :"; \
+# cat hwp_error_info.H; \
+# rm -f hwp_error_info.H; \
+# exit 1; fi
+# The above is commented out as the current version of make produces errors
+# This was taken from the P8 SBE Makefile which worked.
$(OBJDIR)/fixed.bin: $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin
$(TOOLS_IMAGE_DIR)/sbe_xip_tool $(OBJDIR)/$(IMAGE_SEEPROM_NAME).bin extract .fixed $(BASE_OBJDIR)/fixed.bin
@@ -261,7 +286,7 @@ clean:
rm -f $(TOP-FIXED-HEADERS)
rm -fr $(TOOLS_IMAGE_DIR)/bin/*
rm -f *.dump
-
+ rm -f hwp_return_codes.H hwp_error_info.H hwp_ffdc_classes.H collect_reg_ffdc.C set_sbe_error.H
dump:
objdump -s $(OBJDIR)/$(IMAGE_SEEPROM_NAME).out > $(IMAGE_SEEPROM_NAME).dump
OpenPOWER on IntegriCloud