summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2013-01-22 09:41:25 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-02-08 16:49:45 -0600
commitcaf328ccd931de4ce4e4d285d1a4e5ddd151abb5 (patch)
tree650c28362fef4b7fd3d8e727d2b13e25f119434b /src/usr/targeting/common
parent7c50ac8fa046052334326fd4f3c8447cb0c9514d (diff)
downloadtalos-hostboot-caf328ccd931de4ce4e4d285d1a4e5ddd151abb5.tar.gz
talos-hostboot-caf328ccd931de4ce4e4d285d1a4e5ddd151abb5.zip
ERRL: Create Hostboot error log SRC/UD parser and deliver to FSP bld
A new script called genErrlParsers will scan the Hostboot code for error log tags and create a SRC parser for each component. The script will also scan the Hostboot code for plugin directories containing User Detail Data parsers and will create a makefile that is used by the FSP to build each component's SRC/UD parser. Change-Id: I7113f6cd8069447a1caaa199aff199b663d59072 RTC: 47518 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2975 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common')
-rw-r--r--src/usr/targeting/common/xmltohb/common.mk6
-rwxr-xr-xsrc/usr/targeting/common/xmltohb/xmltohb.pl59
2 files changed, 35 insertions, 30 deletions
diff --git a/src/usr/targeting/common/xmltohb/common.mk b/src/usr/targeting/common/xmltohb/common.mk
index f33852729..2aca50020 100644
--- a/src/usr/targeting/common/xmltohb/common.mk
+++ b/src/usr/targeting/common/xmltohb/common.mk
@@ -35,11 +35,13 @@ XMLTOHB_HEADER_TARGETS = \
attributetraits.H \
attributestructs.H \
pnortargeting.H \
- fapiplatattrmacros.H
+ fapiplatattrmacros.H \
+ errludattribute.H
XMLTOHB_SOURCE_TARGETS = \
attributestrings.C \
- attributedump.C
+ attributedump.C \
+ errludattribute.C
XMLTOHB_SYSTEM_BINARIES = \
vbu_targeting.bin \
diff --git a/src/usr/targeting/common/xmltohb/xmltohb.pl b/src/usr/targeting/common/xmltohb/xmltohb.pl
index 98392becc..b6e6e0fad 100755
--- a/src/usr/targeting/common/xmltohb/xmltohb.pl
+++ b/src/usr/targeting/common/xmltohb/xmltohb.pl
@@ -1,26 +1,26 @@
#!/usr/bin/perl
-# IBM_PROLOG_BEGIN_TAG
-# This is an automatically generated prolog.
-#
-# $Source: src/usr/targeting/common/xmltohb/xmltohb.pl $
-#
-# IBM CONFIDENTIAL
-#
-# COPYRIGHT International Business Machines Corp. 2011,2012
-#
-# p1
-#
-# Object Code Only (OCO) source materials
-# Licensed Internal Code Source Materials
-# IBM HostBoot Licensed Internal Code
-#
-# The source code for this program is not published or otherwise
-# divested of its trade secrets, irrespective of what has been
-# deposited with the U.S. Copyright Office.
-#
-# Origin: 30
-#
-# IBM_PROLOG_END_TAG
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: src/usr/targeting/common/xmltohb/xmltohb.pl $
+#
+# IBM CONFIDENTIAL
+#
+# COPYRIGHT International Business Machines Corp. 2011,2013
+#
+# p1
+#
+# Object Code Only (OCO) source materials
+# Licensed Internal Code Source Materials
+# IBM HostBoot Licensed Internal Code
+#
+# The source code for this program is not published or otherwise
+# divested of its trade secrets, irrespective of what has been
+# deposited with the U.S. Copyright Office.
+#
+# Origin: 30
+#
+# IBM_PROLOG_END_TAG
#
# Purpose:
@@ -1507,6 +1507,7 @@ sub writeAttrErrlCFile {
print $outFile "#include <stdio.h>\n";
print $outFile "#include <string.h>\n";
print $outFile "#include <errludattribute.H>\n";
+ print $outFile "#include <errl/errlreasoncodes.H>\n";
print $outFile "#include <targeting/common/targetservice.H>\n";
print $outFile "#include <targeting/common/trace.H>\n";
print $outFile "\n";
@@ -1684,9 +1685,9 @@ sub writeAttrErrlCFile {
print $outFile " : iv_pTarget(i_pTarget), iv_dataSize(0)\n";
print $outFile "{\n";
print $outFile " // Set up ErrlUserDetails instance variables\n";
- print $outFile " iv_CompId = HBERRL_COMP_ID;\n";
+ print $outFile " iv_CompId = ERRL_COMP_ID;\n";
print $outFile " iv_Version = 1;\n";
- print $outFile " iv_SubSection = HBERRL_UDT_ATTRIBUTE;\n";
+ print $outFile " iv_SubSection = ERRL_UDT_ATTRIBUTE;\n";
print $outFile " iv_merge = true;\n";
print $outFile "\n";
print $outFile " // first, write out the HUID\n";
@@ -1704,9 +1705,9 @@ sub writeAttrErrlCFile {
print $outFile " : iv_pTarget(i_pTarget), iv_dataSize(0)\n";
print $outFile "{\n";
print $outFile " // Set up ErrlUserDetails instance variables\n";
- print $outFile " iv_CompId = HBERRL_COMP_ID;\n";
+ print $outFile " iv_CompId = ERRL_COMP_ID;\n";
print $outFile " iv_Version = 1;\n";
- print $outFile " iv_SubSection = HBERRL_UDT_ATTRIBUTE;\n";
+ print $outFile " iv_SubSection = ERRL_UDT_ATTRIBUTE;\n";
print $outFile " // override the default of false\n";
print $outFile " iv_merge = true;\n";
print $outFile "\n";
@@ -1759,10 +1760,10 @@ sub writeAttrErrlHFile {
print $outFile "#ifndef ERRL_UDATTRIBUTE_H\n";
print $outFile "#define ERRL_UDATTRIBUTE_H\n";
print $outFile "\n";
- print $outFile "#include <errl/errluserdetails.H>\n";
- print $outFile "\n";
print $outFile "#ifndef PARSER\n";
print $outFile "\n";
+ print $outFile "#include <errl/errluserdetails.H>\n";
+ print $outFile "\n";
print $outFile "namespace TARGETING // Forward reference\n";
print $outFile "{ class Target; }\n";
print $outFile "\n";
@@ -1791,6 +1792,8 @@ sub writeAttrErrlHFile {
print $outFile "}\n";
print $outFile "#else // if PARSER defined\n";
print $outFile "\n";
+ print $outFile "#include \"errluserdetails.H\"\n";
+ print $outFile "\n";
print $outFile "namespace ERRORLOG\n";
print $outFile "{\n";
print $outFile "class ErrlUserDetailsParserAttribute : public ErrlUserDetailsParser {\n";
OpenPOWER on IntegriCloud