wok diff amd-microcode/receipt @ rev 25553
Up amd-microcode (2021.Sep.10), intel-microcode (20230214)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 09 14:47:24 2023 +0000 (13 months ago) |
parents | 8ea0030e77cb |
children | 943e4e95214c |
line diff
1.1 --- a/amd-microcode/receipt Thu Sep 01 11:12:31 2022 +0000 1.2 +++ b/amd-microcode/receipt Sun Apr 09 14:47:24 2023 +0000 1.3 @@ -1,34 +1,47 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="amd-microcode" 1.7 -VERSION="20180125" # just date of creating the receipt 1.8 +VERSION="2021.Sep.10" 1.9 CATEGORY="kernel" 1.10 SHORT_DESC="AMD processor microcode update for Linux" 1.11 MAINTAINER="al.bobylev@gmail.com" 1.12 LICENSE="unknown" 1.13 -WEB_SITE="https://linuxfromscratch.org/blfs/view/svn/postlfs/firmware.html#and-microcode" # yes, "and" is typo 1.14 +WEB_SITE="https://linuxfromscratch.org/blfs/view/svn/postlfs/firmware.html#amd-microcode" 1.15 # See also: https://wiki.gentoo.org/wiki/AMD_microcode 1.16 1.17 DEPENDS="linux" 1.18 1.19 +# What is the latest version available today? 1.20 +current_version() 1.21 +{ 1.22 + wget -O - https://wiki.gentoo.org/wiki/AMD_microcode 2>/dev/null | \ 1.23 + sed '/signed-off/!d;s|.*off, ||;s|).*||;s|\(.*\) \(.*\) \(.*\)|\3.\2.\1|' | tail -n1 1.24 +} 1.25 + 1.26 +# Rules to configure and make the package. 1.27 compile_rules() { 1.28 - mkdir -p $install/lib/firmware/amd-ucode 1.29 + mkdir -p $install/lib/firmware/amd-ucode $install/lib/firmware/amd 1.30 1.31 - for i in microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin; do 1.32 - [ -f "$SRC/$i" ] || 1.33 - wget -O "$SRC/$i" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/amd-ucode/$i 1.34 - if [ ! -f "$SRC/$i" ]; then 1.35 + for i in amd-ucode/microcode_amd.bin amd-ucode/microcode_amd_fam15h.bin \ 1.36 + amd-ucode/microcode_amd_fam16h.bin amd-ucode/microcode_amd_fam17h.bin \ 1.37 + amd-ucode/microcode_amd_fam19h.bin amd/amd_sev_fam17h_model0xh.sbin \ 1.38 + amd/amd_sev_fam17h_model3xh.sbin amd/amd_sev_fam19h_model0xh.sbin ; do 1.39 + [ -f "$SRC/${i#*/}" ] || 1.40 + wget -O "$SRC/${i#*/}" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/$i 1.41 + if [ ! -f "$SRC/${i#*/}" ]; then 1.42 echo "ERROR: can't get $i" 1.43 return 1 1.44 fi 1.45 - cp "$SRC/$i" $install/lib/firmware/amd-ucode/ 1.46 + cp "$SRC/${i#*/}" $install/lib/firmware/$i 1.47 done 1.48 } 1.49 1.50 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.51 genpkg_rules() { 1.52 cp -r $install/* $fs 1.53 } 1.54 1.55 +# Pre and post install commands for Tazpkg. 1.56 post_install() { 1.57 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then 1.58 echo 1 > /sys/devices/system/cpu/microcode/reload