wok view amd-microcode/receipt @ rev 20645

updated hostapd (2.6 -> 2.7)
author Hans-G?nter Theisgen
date Fri Jan 11 16:39:21 2019 +0100 (20 months ago)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="amd-microcode"
4 VERSION="20180125" # just date of creating the receipt
5 CATEGORY="kernel"
6 SHORT_DESC="AMD processor microcode update for Linux"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="unknown"
9 WEB_SITE="http://linuxfromscratch.org/blfs/view/svn/postlfs/firmware.html#and-microcode" # yes, "and" is typo
10 # See also: https://wiki.gentoo.org/wiki/AMD_microcode
12 DEPENDS="linux"
14 compile_rules() {
15 mkdir -p $install/lib/firmware/amd-ucode
17 for i in microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin; do
18 [ -f "$SRC/$i" ] ||
19 wget -O "$SRC/$i" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/amd-ucode/$i
20 if [ ! -f "$SRC/$i" ]; then
21 echo "ERROR: can't get $i"
22 return 1
23 fi
24 cp "$SRC/$i" $install/lib/firmware/amd-ucode/
25 done
26 }
28 genpkg_rules() {
29 cp -r $install/* $fs
30 }
32 post_install() {
33 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then
34 echo 1 > /sys/devices/system/cpu/microcode/reload
35 fi
36 }