diff options
author | Raptor Engineering Development Team <support@raptorengineering.com> | 2018-01-05 13:00:20 -0600 |
---|---|---|
committer | Raptor Engineering Development Team <support@raptorengineering.com> | 2019-04-19 06:37:03 +0000 |
commit | abc4939faa4592e2d713ea8d4c41c6680b57863c (patch) | |
tree | a3984d6f7e1383f15ac8c233783b441d2fcb8a0c | |
parent | 217753de16746467d82936f8faa31ccee825b909 (diff) | |
download | pnor-abc4939faa4592e2d713ea8d4c41c6680b57863c.tar.gz pnor-abc4939faa4592e2d713ea8d4c41c6680b57863c.zip |
Allow CAPP image skip on POWER9
-rwxr-xr-x | update_image.pl | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/update_image.pl b/update_image.pl index 70f25e1..07f4600 100755 --- a/update_image.pl +++ b/update_image.pl @@ -116,6 +116,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; } @@ -282,8 +283,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} = "$scratch_dir/openpower_pnor_version.bin"; $sections{IMA_CATALOG}{in} = "$ima_catalog_binary_filename"; @@ -345,6 +344,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) |