summaryrefslogtreecommitdiffstats
path: root/src/build/tools/genIStep.pl
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2012-10-16 00:13:25 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-11-03 14:39:41 -0500
commit0fb4ee347957ceb2b58a200551fe6cf2cc212e74 (patch)
tree14efe53094c44be5beb1afe62be4b65bf143014f /src/build/tools/genIStep.pl
parent5aa9bef02647193eed4ce4d26851bd5d79c87c01 (diff)
downloadtalos-hostboot-0fb4ee347957ceb2b58a200551fe6cf2cc212e74.tar.gz
talos-hostboot-0fb4ee347957ceb2b58a200551fe6cf2cc212e74.zip
Return error when procedures fail during istep
Change-Id: I65686d261583ea84c7908f819071bd751fdb0e06 RTC: 39876 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1627 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: Paul Nguyen <nguyenp@us.ibm.com> Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/tools/genIStep.pl')
-rwxr-xr-xsrc/build/tools/genIStep.pl12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/build/tools/genIStep.pl b/src/build/tools/genIStep.pl
index 9e1c362b0..f3490432b 100755
--- a/src/build/tools/genIStep.pl
+++ b/src/build/tools/genIStep.pl
@@ -329,6 +329,8 @@ my $templateCFileHdr =
#include <fapi.H>
#include <fapiPlatHwpInvoker.H>
+#include <hwpisteperror.H>
+
#include \"\@istepname.H\"
// Uncomment these files as they become available:
@@ -345,6 +347,7 @@ namespace \@\@istepname
{
using namespace TARGETING;
+using namespace ISTEP_ERROR;
using namespace fapi;
";
##### end templateCFileNSHdr #####################################
@@ -361,12 +364,14 @@ my $templateCFileSubStep =
//
void* call_\@substepname( void *io_pArgs )
{
- errlHndl_t l_errl = NULL;
+
+ IStepError l_StepError;
TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
\"call_\@substepname entry\" );
#if 0
+ errlHndl_t l_errl = NULL;
// \@\@\@\@\@ CUSTOM BLOCK: \@\@\@\@\@
// figure out what targets we need
// customize any other inputs
@@ -390,6 +395,9 @@ void* call_\@substepname( void *io_pArgs )
TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
\"ERROR : \@substepname, errorlog PLID=0x%x\",
lerrl->plid() );
+
+ l_StepError.addErrorDetails( __REASON_CODE__, __MODULE_ID__, l_errl);
+
errlCommit( l_errl, HWPF_COMP_ID );
}
else
@@ -404,7 +412,7 @@ void* call_\@substepname( void *io_pArgs )
\"call_\@substepname exit\" );
// end task, returning any errorlogs to IStepDisp
- return l_errl ;
+ return l_StepError.getErrorHandle();
}
";
##### end templateCFileSubStep #################################
OpenPOWER on IntegriCloud