summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-05 13:00:20 -0600
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-01-16 15:11:34 -0600
commit61680b7d90e2051c1540b2272af45b6a654326dc (patch)
tree4119201048594eadb0a76b246b993faef1a870cc
parent7a69e6b5d13f66b0e32461ba79c2d4bf1ce1b5d4 (diff)
downloadpnor-61680b7d90e2051c1540b2272af45b6a654326dc.tar.gz
pnor-61680b7d90e2051c1540b2272af45b6a654326dc.zip
Allow CAPP image skip on POWER9
-rwxr-xr-xupdate_image.pl13
1 files changed, 11 insertions, 2 deletions
diff --git a/update_image.pl b/update_image.pl
index 6fbda6e..bde6107 100755
--- a/update_image.pl
+++ b/update_image.pl
@@ -91,6 +91,7 @@ while (@ARGV > 0){
shift;
}
elsif (/^-capp_binary_filename/i){
+ #This filename is necessary if the file exists, but if it's not given, we add a blank partition
$capp_binary_filename = $ARGV[1] or die "Bad command line arg given: execting a config type.\n";
shift;
}
@@ -249,8 +250,6 @@ sub processConvergedSections {
$sections{OCC}{out} = "$occ_binary_filename.ecc";
$sections{BOOTKERNEL}{in} = "$binary_dir/$bootkernel_filename";
$sections{BOOTKERNEL}{out} = "$scratch_dir/$bootkernel_filename";
- $sections{CAPP}{in} = "$capp_binary_filename";
- $sections{CAPP}{out} = "$scratch_dir/cappucode.bin.ecc";
$sections{VERSION}{in} = "$openpower_version_filename";
$sections{VERSION}{out} = "$openpower_version_filename";
$sections{IMA_CATALOG}{in} = "$ima_catalog_binary_filename";
@@ -316,6 +315,16 @@ sub processConvergedSections {
}
$sections{CVPD}{out} = "$scratch_dir/cvpd.bin.ecc";
+ if(-e $capp_binary_filename)
+ {
+ $sections{CAPP}{in} = "$capp_binary_filename";
+ }
+ else
+ {
+ print "WARNING: CAPP partition is not found, including blank binary instead\n";
+ }
+ $sections{CAPP}{out} = "$scratch_dir/cappucode.bin.ecc";
+
# Build up the system bin files specification
my $system_bin_files;
foreach my $section (keys %sections)
OpenPOWER on IntegriCloud