update.amd (4a4e7bf663185b97913c5d981c1bcd7a704386df) | update.amd (d32f26eec03290baae31e85e7c5840280d5c4292) |
---|---|
1#!/bin/ksh 2 3# This file and its contents are supplied under the terms of the 4# Common Development and Distribution License ("CDDL"), version 1.0. 5# You may only use this file in accordance with the terms of version 6# 1.0 of the CDDL. 7# 8# A full copy of the text of the CDDL should have accompanied this --- 77 unchanged lines hidden (view full) --- 86 echo "Signature missing for ${f##*/}" 87 exit 1 88 fi 89 $GPG --homedir $tmp/gnupg --trust-model=always --verify $f{.asc,} 90done 91 92# Now that everything is in place and verified, begin modifying the tree. 93 | 1#!/bin/ksh 2 3# This file and its contents are supplied under the terms of the 4# Common Development and Distribution License ("CDDL"), version 1.0. 5# You may only use this file in accordance with the terms of version 6# 1.0 of the CDDL. 7# 8# A full copy of the text of the CDDL should have accompanied this --- 77 unchanged lines hidden (view full) --- 86 echo "Signature missing for ${f##*/}" 87 exit 1 88 fi 89 $GPG --homedir $tmp/gnupg --trust-model=always --verify $f{.asc,} 90done 91 92# Now that everything is in place and verified, begin modifying the tree. 93 |
94rm -f amd/*-* amd/container | 94rm -f amd/*-* |
95 96cp $tmp/ucode/LICENSE.amd-ucode amd/THIRDPARTYLICENSE 97echo AMD Processor Microcode Data Files > amd/THIRDPARTYLICENSE.descrip 98 99for f in $tmp/ucode/amd-ucode/*.bin; do 100 bf=${f##*/} 101 bf=${bf#microcode_} 102 bf=${bf%.bin} 103 [[ $bf = amd* ]] || errexit "$f does not look like a firmware file" 104 echo "Converting $bf" 105 mkdir $tmp/out/$bf 106 cp $f $tmp/amd-fw 107 $UCODEADM -l $tmp/amd-fw 108 $UCODEADM -i -R $tmp/out/$bf $tmp/amd-fw 109 rm -f $tmp/amd-fw 110done 111 | 95 96cp $tmp/ucode/LICENSE.amd-ucode amd/THIRDPARTYLICENSE 97echo AMD Processor Microcode Data Files > amd/THIRDPARTYLICENSE.descrip 98 99for f in $tmp/ucode/amd-ucode/*.bin; do 100 bf=${f##*/} 101 bf=${bf#microcode_} 102 bf=${bf%.bin} 103 [[ $bf = amd* ]] || errexit "$f does not look like a firmware file" 104 echo "Converting $bf" 105 mkdir $tmp/out/$bf 106 cp $f $tmp/amd-fw 107 $UCODEADM -l $tmp/amd-fw 108 $UCODEADM -i -R $tmp/out/$bf $tmp/amd-fw 109 rm -f $tmp/amd-fw 110done 111 |
112# Copy the combined container file from the old (pre-family-15h) microcode 113# file to 'container'. This file is only used by xVM. 114cp $tmp/out/amd/container amd/ 115 | |
116# Copy the firmware files into place 117cp $tmp/out/*/*-?? amd/ 118 119# Combine the equivalence tables from the different updates into one 120# Each equivalence-table file is a sequence of 16-byte records with a 121# 16-byte terminator which is all zeros. To merge, we just concatenate 122# the non-terminator records and then add 16 bytes from /dev/zero. 123{ --- 25 unchanged lines hidden --- | 112# Copy the firmware files into place 113cp $tmp/out/*/*-?? amd/ 114 115# Combine the equivalence tables from the different updates into one 116# Each equivalence-table file is a sequence of 16-byte records with a 117# 16-byte terminator which is all zeros. To merge, we just concatenate 118# the non-terminator records and then add 16 bytes from /dev/zero. 119{ --- 25 unchanged lines hidden --- |