wok-next view amd-microcode/receipt @ rev 21720

qt4: replaced libIDL by libidl
author Hans-G?nter Theisgen
date Wed Aug 05 09:22:38 2020 +0100 (2020-08-05)
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 }