summaryrefslogtreecommitdiffstats
path: root/src/usr/errl
diff options
context:
space:
mode:
authorPrachi Gupta <pragupta@us.ibm.com>2017-03-20 11:07:49 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-05-01 11:44:49 -0400
commit142a25c1a3453d0cc5bac4a93a2765e60a281d2d (patch)
tree2d19105bb0e21d7dceae6e5b9a6874acb643f6df /src/usr/errl
parentab73555da035ad1193d3490fcb7be86bdf91c43a (diff)
downloadtalos-hostboot-142a25c1a3453d0cc5bac4a93a2765e60a281d2d.tar.gz
talos-hostboot-142a25c1a3453d0cc5bac4a93a2765e60a281d2d.zip
move all non-volatile/openpower attributes from _hb to _openpower files
When pushing hb's attr/target type files to common-mrw-xml repo, we add tags to represent which attributes are for openpower (bmc based system) and which are for fsp based systems. All attributes in _hb files are considered common for both platforms and do not have any tag. All attributes in _openpower will get openpower tag and be only shown to a system engineer if they are building a bmc based system. Therefore, the source of the attribute file is important from now on. Change-Id: I213348f4c4f372b0610b07ad3453f08f75d02224 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38161 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/errl')
-rw-r--r--src/usr/errl/errlentry.C5
-rw-r--r--src/usr/errl/errlmanager_common.C2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C
index 9192ff83a..7c46edff4 100644
--- a/src/usr/errl/errlentry.C
+++ b/src/usr/errl/errlentry.C
@@ -605,6 +605,7 @@ void ErrlEntry::checkHiddenLogsEnable( )
///////////////////////////////////////////////////////////////////////////////
// Called by addHwCallout to get the part and serial numbers from the current
// target so that it can be appended to the error log
+#ifdef CONFIG_BMC_IPMI
void ErrlEntry::addPartAndSerialNumbersToErrLog
(const TARGETING::Target * i_target)
{
@@ -668,7 +669,7 @@ void ErrlEntry::checkHiddenLogsEnable( )
TRACDCOMP(g_trac_errl, EXIT_MRK"ErrlEntry::addPartAndSerialNumbersToErrLog()");
}
-
+#endif
///////////////////////////////////////////////////////////////////////////////
// for use by ErrlManager
@@ -724,7 +725,9 @@ void ErrlEntry::commit( compId_t i_committerComponent )
this);
if(!l_err)
{
+#ifdef CONFIG_BMC_IPMI
addPartAndSerialNumbersToErrLog( l_target );
+#endif
}
else
{
diff --git a/src/usr/errl/errlmanager_common.C b/src/usr/errl/errlmanager_common.C
index 264b631d3..385042748 100644
--- a/src/usr/errl/errlmanager_common.C
+++ b/src/usr/errl/errlmanager_common.C
@@ -26,8 +26,10 @@
#include <config.h>
#include <hwas/common/hwasCallout.H>
#include <errl/errlreasoncodes.H>
+#ifdef CONFIG_BMC_IPMI
#include <ipmi/ipmisel.H>
#include <ipmi/ipmisensor.H>
+#endif
#include <errl/errlentry.H>
#include <sys/mm.h>
#include <pnor/pnorif.H>
OpenPOWER on IntegriCloud