wok-current annotate intel-microcode/receipt @ rev 22952

updated intel-microcode (20180807a -> 20191115)
author Hans-G?nter Theisgen
date Fri Feb 28 14:42:39 2020 +0100 (2020-02-28)
parents 10c3a6f71c06
children 5ea0ce1cecc0
rev   line source
al@20178 1 # SliTaz package receipt.
al@20177 2
al@20177 3 PACKAGE="intel-microcode"
Hans-G?nter@22952 4 VERSION="20191115"
al@20177 5 CATEGORY="kernel"
Hans-G?nter@21052 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
Hans-G?nter@22952 14 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22952 15 WGET_URL="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-$VERSION.tar.gz"
al@20178 16
al@20178 17 DEPENDS="linux"
al@20177 18
Hans-G?nter@21052 19 compile_rules()
Hans-G?nter@21052 20 {
al@20177 21 mkdir -p $install/lib/firmware/
Hans-G?nter@21052 22
Hans-G?nter@22952 23 cp -r $src/intel-ucode/ $install/lib/firmware/
al@20177 24
Hans-G?nter@22952 25 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
al@20177 26 }
al@20177 27
Hans-G?nter@21052 28 genpkg_rules()
Hans-G?nter@21052 29 {
Hans-G?nter@22952 30 cp -r $install/* $fs
al@20177 31 }
al@20177 32
Hans-G?nter@21052 33 post_install()
Hans-G?nter@21052 34 {
Hans-G?nter@22952 35 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]
Hans-G?nter@22952 36 then
al@20177 37 echo 1 > /sys/devices/system/cpu/microcode/reload
al@20177 38 fi
al@20177 39 }