diff options
author | Raja Das <rajadas2@in.ibm.com> | 2015-08-28 01:56:20 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-09-03 16:33:40 -0500 |
commit | 3f30a51ff6dcb1977586bba6e6002d0d861238ca (patch) | |
tree | 2dc60bd052f6e799cddf60fbf44d822a05c3dc0b /src/usr | |
parent | 1ff77263b0a758eb4174e290a582b86b71dd964d (diff) | |
download | talos-hostboot-3f30a51ff6dcb1977586bba6e6002d0d861238ca.tar.gz talos-hostboot-3f30a51ff6dcb1977586bba6e6002d0d861238ca.zip |
Modified the algo to calculate md5_hex for HB Bins
Change-Id: I3e82d0fd32a4cd56b90d7df16160e144671484fa
CQ: SW319776
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20200
Tested-by: Jenkins Server
Tested-by: Jenkins OP Build CI
Tested-by: Jenkins OP HW
Tested-by: FSP CI Jenkins
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr')
-rwxr-xr-x | src/usr/targeting/common/xmltohb/xmltohb.pl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/usr/targeting/common/xmltohb/xmltohb.pl b/src/usr/targeting/common/xmltohb/xmltohb.pl index 6e8db84ca..0e1b79f47 100755 --- a/src/usr/targeting/common/xmltohb/xmltohb.pl +++ b/src/usr/targeting/common/xmltohb/xmltohb.pl @@ -5951,8 +5951,18 @@ sub generateTargetingImage { { #Generate the MD5 checksum value for the read-only data and update the #content of the version section + my $md5hex = Digest::MD5->new; + $md5hex->add($numTargetsPointerBinData); + $md5hex->add($attributeListBinData); + $md5hex->add($attributePointerBinData); + $md5hex->add($numTargetsBinData); + $md5hex->add($targetsBinData); + $md5hex->add($roAttrBinData); + $md5hex->add($associationsBinData); + $md5hex->add($heapPnorInitBinData); + my $versionHeader = "VERSION"; - $versionHeader .= md5_hex($roAttrBinData); + my $versionHeader .= $md5hex->hexdigest; $outFile .= $versionHeader; my $versionHeaderPadSize = |