wok diff intel-microcode/receipt @ rev 20177
Add intel-microcode
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 25 03:34:29 2018 +0200 (2018-01-25) |
parents | |
children | 12473799110f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intel-microcode/receipt Thu Jan 25 03:34:29 2018 +0200 1.3 @@ -0,0 +1,33 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="intel-microcode" 1.7 +VERSION="20180108" # version hidden by Intel, redirected to -> 20171117 1.8 +CATEGORY="kernel" 1.9 +SHORT_DESC="Intel processor microcode update for Linux" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="other" 1.12 +WEB_SITE="https://downloadcenter.intel.com/search?keyword=processor+microcode+data+file" 1.13 +# See also: https://wiki.archlinux.org/index.php/Microcode 1.14 +# and https://www.archlinux.org/packages/extra/any/intel-ucode/ 1.15 + 1.16 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 +WGET_URL="https://downloadmirror.intel.com/27431/eng/microcode-$VERSION.tgz" 1.18 +TARBALL_SHA1="2392dcf585a9d6313cd00d8b21cb2f54ae1d8ce3" 1.19 + 1.20 +compile_rules() { 1.21 + mkdir -p $install/lib/firmware/ 1.22 + cp -r $src/intel-ucode/ $install/lib/firmware/ 1.23 + 1.24 + install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE 1.25 +} 1.26 + 1.27 +genpkg_rules() { 1.28 + copy @std 1.29 + DEPENDS="linux" 1.30 +} 1.31 + 1.32 +post_install() { 1.33 + if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then 1.34 + echo 1 > /sys/devices/system/cpu/microcode/reload 1.35 + fi 1.36 +}