wok-next view amd-microcode/receipt @ rev 20443
The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Feb 24 16:17:33 2018 +0200 (2018-02-24) |
parents | |
children | 7b8e000b629f |
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
12 compile_rules() {
13 mkdir -p $install/lib/firmware/amd-ucode
15 for i in microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin; do
16 [ -f "$SRC/$i" ] ||
17 wget -O "$SRC/$i" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/amd-ucode/$i
18 if [ ! -f "$SRC/$i" ]; then
19 echo "ERROR: can't get $i"
20 return 1
21 fi
22 cp "$SRC/$i" $install/lib/firmware/amd-ucode/
23 done
24 }
26 genpkg_rules() {
27 copy @std
28 DEPENDS="linux"
29 }
31 post_install_amd_microcode() {
32 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then
33 echo 1 > /sys/devices/system/cpu/microcode/reload
34 fi
35 }