wok-next view intel-microcode/receipt @ rev 21051

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 30 01:34:53 2018 +0200 (2018-11-30)
parents e7a485521d6a
children 0cbe4b1f2230
line source
1 # SliTaz package receipt v2.
3 PACKAGE="intel-microcode"
4 VERSION="20180703"; DL_ID="27945"
5 CATEGORY="kernel"
6 SHORT_DESC="Intel processor microcode update for Linux"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="other"
9 WEB_SITE="https://downloadcenter.intel.com/search?keyword=processor+microcode+data+file"
10 # See also: https://wiki.archlinux.org/index.php/Microcode
11 # and https://www.archlinux.org/packages/extra/any/intel-ucode/
12 # https://www.kernel.org/doc/Documentation/x86/early-microcode.txt
13 # http://linuxfromscratch.org/blfs/view/svn/postlfs/firmware.html#early-microcode
15 TARBALL="$PACKAGE-$VERSION.tgz"
16 WGET_URL="https://downloadmirror.intel.com/$DL_ID/eng/microcode-$VERSION.tgz"
17 TARBALL_MD5="873f2bdd7c0edf317f416f54fee74b42"
19 BUILD_DEPENDS="iucode-tool"
20 SPLIT="$PACKAGE-initrd"
22 compile_rules() {
23 mkdir -p $install/lib/firmware/
24 cp -r $src/intel-ucode/ $install/lib/firmware/
26 mkdir -p $install/boot
27 mkdir -p kernel/x86/microcode
28 iucode_tool -w kernel/x86/microcode/GenuineIntel.bin intel-ucode/ intel-ucode-with-caveats/
29 echo kernel/x86/microcode/GenuineIntel.bin \
30 | cpio -o -H newc \
31 > $install/boot/intel-ucode.img
33 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
35 cook_pick_docs releasenote
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 intel-microcode)
41 copy lib/ LICENSE
42 DEPENDS="linux"
43 ;;
44 intel-microcode-initrd)
45 copy boot/ LICENSE
46 CAT="kernel|initrd for early loading"
47 DEPENDS="linux"
48 ;;
49 esac
50 }
52 post_install_intel_microcode() {
53 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then
54 echo 1 > /sys/devices/system/cpu/microcode/reload
55 fi
56 }
57 post_install_intel_microcode_initrd() {
58 [ -n "$quiet" ] || cat <<EOT
60 .------------------------------------------------------------------.
61 | In order to update the Intel CPU microcode on boot, add the file |
62 | /boot/intel-ucode.img |
63 | as the first initrd to your bootloader. |
64 '------------------------------------------------------------------'
66 EOT
67 }