wok-next view amd-microcode/receipt @ rev 21102
gtkglext: patch
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 03 00:26:26 2019 +0200 (2019-01-03) |
parents | 0e7893ac206d |
children |
line source
1 # SliTaz package receipt v2.
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
11 HOST_ARCH="any"
13 DEPENDS_std="linux"
15 compile_rules() {
16 mkdir -p $install/lib/firmware/amd-ucode
18 for i in microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin; do
19 [ -f "$SRC/$i" ] ||
20 wget -O "$SRC/$i" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/amd-ucode/$i
21 if [ ! -f "$SRC/$i" ]; then
22 echo "ERROR: can't get $i"
23 return 1
24 fi
25 cp "$SRC/$i" $install/lib/firmware/amd-ucode/
26 done
27 }
29 post_install() {
30 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then
31 echo 1 > /sys/devices/system/cpu/microcode/reload
32 fi
33 }