diff options
author | Raptor Engineering Development Team <support@raptorengineering.com> | 2018-01-05 12:14:49 -0600 |
---|---|---|
committer | Raptor Engineering Development Team <support@raptorengineering.com> | 2019-04-19 06:37:03 +0000 |
commit | 217753de16746467d82936f8faa31ccee825b909 (patch) | |
tree | 5141280f216e808d62103e0f01d676c1a59f8198 | |
parent | 96ca3a58cb21dcef8e9ecdfd1d3eb921fc181e67 (diff) | |
download | pnor-217753de16746467d82936f8faa31ccee825b909.tar.gz pnor-217753de16746467d82936f8faa31ccee825b909.zip |
Allow CVPD image skip on POWER9
-rwxr-xr-x | create_pnor_image.pl | 2 | ||||
-rwxr-xr-x | update_image.pl | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/create_pnor_image.pl b/create_pnor_image.pl index 51ea988..563f64a 100755 --- a/create_pnor_image.pl +++ b/create_pnor_image.pl @@ -160,7 +160,6 @@ $build_pnor_command .= " --binFile_BOOTKERNEL $bootkernel"; $build_pnor_command .= " --binFile_NVRAM $scratch_dir/nvram.bin"; $build_pnor_command .= " --binFile_MVPD $scratch_dir/mvpd_fill.bin.ecc"; $build_pnor_command .= " --binFile_DJVPD $scratch_dir/djvpd_fill.bin.ecc"; -$build_pnor_command .= " --binFile_CVPD $scratch_dir/cvpd.bin.ecc"; $build_pnor_command .= " --binFile_ATTR_TMP $scratch_dir/attr_tmp.bin.ecc"; $build_pnor_command .= " --binFile_OCC $occ_binary_filename.ecc"; $build_pnor_command .= " --binFile_ATTR_PERM $scratch_dir/attr_perm.bin.ecc"; @@ -176,6 +175,7 @@ if ($release eq "p9"){ $build_pnor_command .= " --binFile_HDAT $hdat_binary_filename" if -e $hdat_binary_filename; } if ($release eq "p8"){ + $build_pnor_command .= " --binFile_CVPD $scratch_dir/cvpd.bin.ecc"; $build_pnor_command .= " --binFile_SBEC $scratch_dir/$sbec_binary_filename"; $build_pnor_command .= " --binFile_WINK $scratch_dir/$wink_binary_filename"; } else { diff --git a/update_image.pl b/update_image.pl index 2efcb50..70f25e1 100755 --- a/update_image.pl +++ b/update_image.pl @@ -284,8 +284,6 @@ sub processConvergedSections { $sections{BOOTKERNEL}{out} = "$scratch_dir/$bootkernel_filename"; $sections{CAPP}{in} = "$capp_binary_filename"; $sections{CAPP}{out} = "$scratch_dir/cappucode.bin.ecc"; - $sections{CVPD}{in} = "$hb_binary_dir/cvpd.bin"; - $sections{CVPD}{out} = "$scratch_dir/cvpd.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"; @@ -337,6 +335,16 @@ sub processConvergedSections { } $sections{HDAT}{out} = "$scratch_dir/hdat.bin.ecc"; + if(-e "$hb_binary_dir/cvpd.bin") + { + $sections{CVPD}{in} = "$hb_binary_dir/cvpd.bin"; + } + else + { + print "WARNING: CVPD partition is not found, including blank binary instead\n"; + } + $sections{CVPD}{out} = "$scratch_dir/cvpd.bin.ecc"; + # Build up the system bin files specification my $system_bin_files; foreach my $section (keys %sections) |