Lines Matching +full:reboot +full:- +full:mode
21 UPSTREAM_PATH=/pub/scm/linux/kernel/git/firmware/linux-firmware.git
27 typeset -a GPGKEYS=(
39 export LC_ALL=C.UTF-8
41 set -e
42 set -o pipefail
44 mf=../../pkg/manifests/system-microcode-amd.p5m
45 [[ -f $mf ]] || errexit "Run from usr/src/data/ucode"
50 typeset -n path="$var"
51 path=$(whence -fp "$cmd")
52 if (($? != 0)) || [ ! -x "$path" ]; then
68 tmp=$(mktemp -d)
69 [[ -n "$tmp" && -d "$tmp" ]]
71 trap 'rm -rf $tmp' EXIT
74 mkdir -m 0700 $tmp/gnupg
75 $GPG --homedir $tmp/gnupg --keyserver $GPGSERVER --receive-keys ${GPGKEYS[@]}
80 ver=`$GIT -C $tmp/ucode log -n1 --format=%ad --date=format:%Y%m%d amd-ucode`
84 for f in $tmp/ucode/amd-ucode/*.bin; do
85 if [[ ! -f "$f.asc" ]]; then
89 $GPG --homedir $tmp/gnupg --trust-model=always --verify $f{.asc,}
94 rm -f amd/*-*
96 cp $tmp/ucode/LICENSE.amd-ucode amd/THIRDPARTYLICENSE
99 for f in $tmp/ucode/amd-ucode/*.bin; do
108 cp $f $tmp/amd-fw
109 $UCODEADM -l $tmp/amd-fw
110 $UCODEADM -i -R $tmp/out/$bf $tmp/amd-fw
111 rm -f $tmp/amd-fw
115 cp $tmp/out/*/*-?? amd/
118 # Each equivalence-table file is a sequence of 16-byte records with a
119 # 16-byte terminator which is all zeros. To merge, we just concatenate
120 # the non-terminator records and then add 16 bytes from /dev/zero.
122 for f in $tmp/out/*/equivalence-table; do
123 size=$($STAT -c %s $f)
124 ((size -= 16))
129 } > amd/equivalence-table
131 $PKGFMT -u $mf
133 egrep -v "file path=$FW" $mf.tmp > $mf
134 rm -f $mf.tmp
136 for f in amd/*-*; do
137 [[ -f $f ]] || continue
139 echo "file path=$FW/$bf group=sys mode=0444 reboot-needed=true" >> $mf
142 for f in amd/fallback/*-*; do
145 "group=sys mode=0444 reboot-needed=true" >> $mf
148 sed -i "/pkg.fmri.*microcode\/amd@/s/@[0-9]*/@$ver/" $mf
150 $PKGFMT -fv2 $mf