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