wok annotate intel-microcode/receipt @ rev 20270

Up intel-microcode (27591) with final Spectre fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 17 17:15:50 2018 +0100 (2018-03-17)
parents 12473799110f
children 10c3a6f71c06
rev   line source
al@20178 1 # SliTaz package receipt.
al@20177 2
al@20177 3 PACKAGE="intel-microcode"
pascal@20270 4 VERSION="20180312"
al@20177 5 CATEGORY="kernel"
al@20177 6 SHORT_DESC="Intel processor microcode update for Linux"
al@20177 7 MAINTAINER="al.bobylev@gmail.com"
al@20177 8 LICENSE="other"
al@20177 9 WEB_SITE="https://downloadcenter.intel.com/search?keyword=processor+microcode+data+file"
al@20177 10 # See also: https://wiki.archlinux.org/index.php/Microcode
al@20177 11 # and https://www.archlinux.org/packages/extra/any/intel-ucode/
al@20177 12
al@20178 13
al@20177 14 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20270 15 WGET_URL="https://downloadmirror.intel.com/27591/eng/microcode-$VERSION.tgz"
al@20178 16
al@20178 17 DEPENDS="linux"
al@20177 18
al@20177 19 compile_rules() {
al@20177 20 mkdir -p $install/lib/firmware/
al@20177 21 cp -r $src/intel-ucode/ $install/lib/firmware/
al@20177 22
al@20177 23 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
al@20177 24 }
al@20177 25
al@20177 26 genpkg_rules() {
al@20178 27 cp -r $install/* $fs
al@20177 28 }
al@20177 29
al@20177 30 post_install() {
al@20177 31 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then
al@20177 32 echo 1 > /sys/devices/system/cpu/microcode/reload
al@20177 33 fi
al@20177 34 }