wok-next view amd-microcode/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
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 }