wok-6.x diff amd-microcode/receipt @ rev 23955
Add rhash
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 26 09:25:55 2020 +0000 (2020-09-26) |
parents | |
children | 8ea0030e77cb |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/amd-microcode/receipt Sat Sep 26 09:25:55 2020 +0000 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="amd-microcode" 1.7 +VERSION="20180125" # just date of creating the receipt 1.8 +CATEGORY="kernel" 1.9 +SHORT_DESC="AMD processor microcode update for Linux" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="unknown" 1.12 +WEB_SITE="http://linuxfromscratch.org/blfs/view/svn/postlfs/firmware.html#and-microcode" # yes, "and" is typo 1.13 +# See also: https://wiki.gentoo.org/wiki/AMD_microcode 1.14 + 1.15 +DEPENDS="linux" 1.16 + 1.17 +compile_rules() { 1.18 + mkdir -p $install/lib/firmware/amd-ucode 1.19 + 1.20 + for i in microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin; do 1.21 + [ -f "$SRC/$i" ] || 1.22 + wget -O "$SRC/$i" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/amd-ucode/$i 1.23 + if [ ! -f "$SRC/$i" ]; then 1.24 + echo "ERROR: can't get $i" 1.25 + return 1 1.26 + fi 1.27 + cp "$SRC/$i" $install/lib/firmware/amd-ucode/ 1.28 + done 1.29 +} 1.30 + 1.31 +genpkg_rules() { 1.32 + cp -r $install/* $fs 1.33 +} 1.34 + 1.35 +post_install() { 1.36 + if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then 1.37 + echo 1 > /sys/devices/system/cpu/microcode/reload 1.38 + fi 1.39 +}