wok-current annotate 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
rev   line source
al@20177 1 # SliTaz package receipt v2.
al@20177 2
al@20177 3 PACKAGE="intel-microcode"
al@20177 4 VERSION="20180108" # version hidden by Intel, redirected to -> 20171117
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@20177 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20177 14 WGET_URL="https://downloadmirror.intel.com/27431/eng/microcode-$VERSION.tgz"
al@20177 15 TARBALL_SHA1="2392dcf585a9d6313cd00d8b21cb2f54ae1d8ce3"
al@20177 16
al@20177 17 compile_rules() {
al@20177 18 mkdir -p $install/lib/firmware/
al@20177 19 cp -r $src/intel-ucode/ $install/lib/firmware/
al@20177 20
al@20177 21 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
al@20177 22 }
al@20177 23
al@20177 24 genpkg_rules() {
al@20177 25 copy @std
al@20177 26 DEPENDS="linux"
al@20177 27 }
al@20177 28
al@20177 29 post_install() {
al@20177 30 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then
al@20177 31 echo 1 > /sys/devices/system/cpu/microcode/reload
al@20177 32 fi
al@20177 33 }