summaryrefslogtreecommitdiffstats
path: root/src/build/buildpnor/PnorUtils.pm
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2016-02-05 10:35:21 -0600
committerMatthew A. Ploetz <maploetz@us.ibm.com>2017-03-08 09:12:32 -0500
commit6f2a36c73cfbc18d0d6bf86a45c63014fe12fd1d (patch)
tree0a14231cf654b6610a3a922754fbcf470e5e96dd /src/build/buildpnor/PnorUtils.pm
parent04e001c3139323868eafb1742160fb7e76d9e1fd (diff)
downloadtalos-hostboot-6f2a36c73cfbc18d0d6bf86a45c63014fe12fd1d.tar.gz
talos-hostboot-6f2a36c73cfbc18d0d6bf86a45c63014fe12fd1d.zip
Support Provisioning PNOR partition XML element.
If the element is present, set a flag in the PNOR TOC. Other code, like BMC code, would then erase these partitions when the system is reprovisioned. RTC: 143305 Forwardport: yes Change-Id: I457895f65d81e0a971bf301f16be2921dc21a24a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/20576 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Diffstat (limited to 'src/build/buildpnor/PnorUtils.pm')
-rw-r--r--src/build/buildpnor/PnorUtils.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build/buildpnor/PnorUtils.pm b/src/build/buildpnor/PnorUtils.pm
index dcb524167..bcdf53af1 100644
--- a/src/build/buildpnor/PnorUtils.pm
+++ b/src/build/buildpnor/PnorUtils.pm
@@ -6,7 +6,7 @@
#
# OpenPOWER HostBoot Project
#
-# Contributors Listed Below - COPYRIGHT 2016
+# Contributors Listed Below - COPYRIGHT 2016,2017
# [+] International Business Machines Corp.
#
#
@@ -154,6 +154,7 @@ sub loadPnorLayout
my $sha512Version = (exists $sectionEl->{sha512Version} ? "yes" : "no");
my $sha512perEC = (exists $sectionEl->{sha512perEC} ? "yes" : "no");
my $preserved = (exists $sectionEl->{preserved} ? "yes" : "no");
+ my $reprovision = (exists $sectionEl->{reprovision} ? "yes" : "no");
my $readOnly = (exists $sectionEl->{readOnly} ? "yes" : "no");
if (($i_testRun == 0) && ($sectionEl->{testonly}[0] eq "yes"))
{
@@ -179,6 +180,7 @@ sub loadPnorLayout
$$i_pnorLayoutRef{sections}{$physicalOffset}{sha512Version} = $sha512Version;
$$i_pnorLayoutRef{sections}{$physicalOffset}{sha512perEC} = $sha512perEC;
$$i_pnorLayoutRef{sections}{$physicalOffset}{preserved} = $preserved;
+ $$i_pnorLayoutRef{sections}{$physicalOffset}{reprovision} = $reprovision;
$$i_pnorLayoutRef{sections}{$physicalOffset}{readOnly} = $readOnly;
#store the physical offsets of each section in a hash, so, it is easy
OpenPOWER on IntegriCloud