wok-next annotate amd-microcode/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 0e7893ac206d
children
rev   line source
al@20443 1 # SliTaz package receipt v2.
al@20443 2
al@20443 3 PACKAGE="amd-microcode"
al@20443 4 VERSION="20180125" # just date of creating the receipt
al@20443 5 CATEGORY="kernel"
al@20443 6 SHORT_DESC="AMD processor microcode update for Linux"
al@20443 7 MAINTAINER="al.bobylev@gmail.com"
al@20443 8 LICENSE="unknown"
al@20443 9 WEB_SITE="http://linuxfromscratch.org/blfs/view/svn/postlfs/firmware.html#and-microcode" # yes, "and" is typo
al@20443 10 # See also: https://wiki.gentoo.org/wiki/AMD_microcode
al@21048 11 HOST_ARCH="any"
al@21048 12
al@21048 13 DEPENDS_std="linux"
al@20443 14
al@20443 15 compile_rules() {
al@20443 16 mkdir -p $install/lib/firmware/amd-ucode
al@20443 17
al@20443 18 for i in microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin; do
al@20443 19 [ -f "$SRC/$i" ] ||
al@20443 20 wget -O "$SRC/$i" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/amd-ucode/$i
al@20443 21 if [ ! -f "$SRC/$i" ]; then
al@20443 22 echo "ERROR: can't get $i"
al@20443 23 return 1
al@20443 24 fi
al@20443 25 cp "$SRC/$i" $install/lib/firmware/amd-ucode/
al@20443 26 done
al@20443 27 }
al@20443 28
al@21048 29 post_install() {
al@20443 30 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then
al@20443 31 echo 1 > /sys/devices/system/cpu/microcode/reload
al@20443 32 fi
al@20443 33 }