wok-6.x view amd-microcode/receipt @ rev 20604

Up linux-libre (3.18.129)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 17 23:42:42 2018 +0100 (2018-12-17)
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 }