wok-next annotate 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 |
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@20443 | 11 |
al@20443 | 12 compile_rules() { |
al@20443 | 13 mkdir -p $install/lib/firmware/amd-ucode |
al@20443 | 14 |
al@20443 | 15 for i in microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin; do |
al@20443 | 16 [ -f "$SRC/$i" ] || |
al@20443 | 17 wget -O "$SRC/$i" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/amd-ucode/$i |
al@20443 | 18 if [ ! -f "$SRC/$i" ]; then |
al@20443 | 19 echo "ERROR: can't get $i" |
al@20443 | 20 return 1 |
al@20443 | 21 fi |
al@20443 | 22 cp "$SRC/$i" $install/lib/firmware/amd-ucode/ |
al@20443 | 23 done |
al@20443 | 24 } |
al@20443 | 25 |
al@20443 | 26 genpkg_rules() { |
al@20443 | 27 copy @std |
al@20443 | 28 DEPENDS="linux" |
al@20443 | 29 } |
al@20443 | 30 |
al@20443 | 31 post_install_amd_microcode() { |
al@20443 | 32 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then |
al@20443 | 33 echo 1 > /sys/devices/system/cpu/microcode/reload |
al@20443 | 34 fi |
al@20443 | 35 } |