wok-next diff amd-microcode/receipt @ rev 20663
Fix web site for the Shimmer Project themes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 10 22:58:32 2018 +0300 (2018-05-10) |
parents | |
children | 7b8e000b629f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/amd-microcode/receipt Thu May 10 22:58:32 2018 +0300 1.3 @@ -0,0 +1,35 @@ 1.4 +# SliTaz package receipt v2. 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 +compile_rules() { 1.16 + mkdir -p $install/lib/firmware/amd-ucode 1.17 + 1.18 + for i in microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin; do 1.19 + [ -f "$SRC/$i" ] || 1.20 + wget -O "$SRC/$i" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/amd-ucode/$i 1.21 + if [ ! -f "$SRC/$i" ]; then 1.22 + echo "ERROR: can't get $i" 1.23 + return 1 1.24 + fi 1.25 + cp "$SRC/$i" $install/lib/firmware/amd-ucode/ 1.26 + done 1.27 +} 1.28 + 1.29 +genpkg_rules() { 1.30 + copy @std 1.31 + DEPENDS="linux" 1.32 +} 1.33 + 1.34 +post_install_amd_microcode() { 1.35 + if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then 1.36 + echo 1 > /sys/devices/system/cpu/microcode/reload 1.37 + fi 1.38 +}