wok-next view intel-microcode/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
parents | 0cbe4b1f2230 |
children |
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
14 #HOST_ARCH="any"
16 TARBALL="$PACKAGE-$VERSION.tgz"
17 WGET_URL="https://downloadmirror.intel.com/$DL_ID/eng/microcode-$VERSION.tgz"
18 TARBALL_MD5="873f2bdd7c0edf317f416f54fee74b42"
20 COOKOPTS="force-arch" # different intel-ucode.img ?
22 BUILD_DEPENDS="iucode-tool"
23 SPLIT="$PACKAGE-initrd"
25 compile_rules() {
26 mkdir -p $install/lib/firmware/
27 cp -r $src/intel-ucode/ $install/lib/firmware/
29 mkdir -p $install/boot
30 mkdir -p kernel/x86/microcode
31 iucode_tool -w kernel/x86/microcode/GenuineIntel.bin intel-ucode/ intel-ucode-with-caveats/
32 echo kernel/x86/microcode/GenuineIntel.bin \
33 | cpio -o -H newc \
34 > $install/boot/intel-ucode.img
36 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
38 cook_pick_docs releasenote
39 }
41 genpkg_rules() {
42 case $PACKAGE in
43 intel-microcode)
44 copy lib/ LICENSE
45 DEPENDS="linux"
46 ;;
47 intel-microcode-initrd)
48 copy boot/ LICENSE
49 CAT="kernel|initrd for early loading"
50 DEPENDS="linux"
51 ;;
52 esac
53 }
55 post_install_intel_microcode() {
56 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then
57 echo 1 > /sys/devices/system/cpu/microcode/reload
58 fi
59 }
60 post_install_intel_microcode_initrd() {
61 [ -n "$quiet" ] || cat <<EOT
63 .------------------------------------------------------------------.
64 | In order to update the Intel CPU microcode on boot, add the file |
65 | /boot/intel-ucode.img |
66 | as the first initrd to your bootloader. |
67 '------------------------------------------------------------------'
69 EOT
70 }