wok view amd-microcode/receipt @ rev 20555
Up libgcrypt-dev (1.8.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 12 15:52:57 2018 +0100 (2018-12-12) |
parents | |
children | 8ea0030e77cb |
line source
1 # SliTaz package receipt.
3 PACKAGE="amd-microcode"
4 VERSION="20180125" # just date of creating the receipt
5 CATEGORY="kernel"
6 SHORT_DESC="AMD processor microcode update for Linux"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="unknown"
9 WEB_SITE="http://linuxfromscratch.org/blfs/view/svn/postlfs/firmware.html#and-microcode" # yes, "and" is typo
10 # See also: https://wiki.gentoo.org/wiki/AMD_microcode
12 DEPENDS="linux"
14 compile_rules() {
15 mkdir -p $install/lib/firmware/amd-ucode
17 for i in microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin; do
18 [ -f "$SRC/$i" ] ||
19 wget -O "$SRC/$i" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/amd-ucode/$i
20 if [ ! -f "$SRC/$i" ]; then
21 echo "ERROR: can't get $i"
22 return 1
23 fi
24 cp "$SRC/$i" $install/lib/firmware/amd-ucode/
25 done
26 }
28 genpkg_rules() {
29 cp -r $install/* $fs
30 }
32 post_install() {
33 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then
34 echo 1 > /sys/devices/system/cpu/microcode/reload
35 fi
36 }