7 |
7 |
|
8 |
8 |
# Find updates by searching and clicking the first link (hopefully it's the one):
|
9 |
9 |
# https://www.intel.com/content/www/us/en/search.html?keyword=Processor+Microcode+Data+File
|
|
10 |
#
|
|
11 |
#
|
|
12 |
# Package Maintenance instructions:
|
|
13 |
# 1. The ebuild is in the form of intel-microcode-<INTEL_SNAPSHOT>_p<COLLECTION_SNAPSHOT>.ebuild
|
|
14 |
# 2. The INTEL_SNAPSHOT upstream is located at: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files
|
|
15 |
# 3. The COLLECTION_SNAPSHOT is created manually using the following steps:
|
|
16 |
# a. Clone the repository https://github.com/platomav/CPUMicrocodes
|
|
17 |
# b. Rename the Intel directory to intel-microcode-collection-<YYYYMMDD>
|
|
18 |
# c. From the CPUMicrocodes directory tar and xz compress the contents of intel-microcode-collection-<YYYYMMDD>:
|
|
19 |
# tar -cJf intel-microcode-collection-<YYYYMMDD>.tar.xz intel-microcode-collection-<YYYYMMDD>/
|
|
20 |
# d. This file can go in your devspace, add the URL to SRC_URI if it's not there
|
|
21 |
# https://dev.gentoo.org/~<dev nick>/dist/intel-microcode/intel-microcode-collection-${COLLECTION_SNAPSHOT}.tar.xz
|
|
22 |
#
|
|
23 |
# PV:
|
|
24 |
# * the first date is upstream
|
|
25 |
# * the second date is snapshot (use last commit date in repo) from intel-microcode-collection
|
10 |
26 |
|
11 |
27 |
COLLECTION_SNAPSHOT="${PV##*_p}"
|
12 |
28 |
INTEL_SNAPSHOT="${PV/_p*}"
|
13 |
29 |
#NUM="28087"
|
|
30 |
|
14 |
31 |
#https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=${NUM}
|
15 |
32 |
#https://downloadmirror.intel.com/${NUM}/eng/microcode-${INTEL_SNAPSHOT}.tgz
|
|
33 |
|
16 |
34 |
DESCRIPTION="Intel IA32/IA64 microcode update data"
|
17 |
|
HOMEPAGE="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files http://inertiawar.com/microcode/"
|
18 |
|
SRC_URI="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-${INTEL_SNAPSHOT}.tar.gz
|
|
35 |
HOMEPAGE="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files https://github.com/platomav/CPUMicrocodes http://inertiawar.com/microcode/"
|
|
36 |
SRC_URI="
|
|
37 |
https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-${INTEL_SNAPSHOT}.tar.gz
|
19 |
38 |
https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/raw/437f382b1be4412b9d03e2bbdcda46d83d581242/intel-ucode/06-4e-03 -> intel-ucode-sig_0x406e3-rev_0xd6.bin
|
20 |
39 |
https://dev.gentoo.org/~mpagano/dist/intel-microcode/intel-microcode-collection-${COLLECTION_SNAPSHOT}.tar.xz
|
21 |
|
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/intel-microcode-collection-${COLLECTION_SNAPSHOT}.tar.xz"
|
|
40 |
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/intel-microcode-collection-${COLLECTION_SNAPSHOT}.tar.xz
|
|
41 |
"
|
|
42 |
S="${WORKDIR}"
|
22 |
43 |
|
23 |
44 |
LICENSE="intel-ucode"
|
24 |
45 |
SLOT="0"
|
25 |
46 |
KEYWORDS="-* amd64 x86"
|
26 |
47 |
IUSE="hostonly initramfs +split-ucode vanilla"
|
27 |
48 |
REQUIRED_USE="|| ( initramfs split-ucode )"
|
|
49 |
RESTRICT="binchecks strip"
|
28 |
50 |
|
29 |
51 |
BDEPEND=">=sys-apps/iucode_tool-2.3"
|
30 |
|
|
31 |
52 |
# !<sys-apps/microcode-ctl-1.17-r2 due to bug #268586
|
32 |
53 |
RDEPEND="hostonly? ( sys-apps/iucode_tool )"
|
33 |
54 |
|
34 |
|
RESTRICT="binchecks strip"
|
35 |
|
|
36 |
|
S=${WORKDIR}
|
37 |
|
|
38 |
55 |
# Blacklist bad microcode here.
|
39 |
56 |
# 0x000406f1 aka 06-4f-01 aka CPUID 406F1 require newer microcode loader
|
40 |
57 |
MICROCODE_BLACKLIST_DEFAULT="-s !0x000406f1"
|
... | ... | |
57 |
74 |
# only specific CPU: MICROCODE_SIGNATURES="-s 0x00000f4a -s 0x00010676"
|
58 |
75 |
# exclude specific CPU: MICROCODE_SIGNATURES="-s !0x00000686"
|
59 |
76 |
|
60 |
|
# Package Maintenance instructions :
|
61 |
|
# 1. The ebuild is in the form of intel-microcode-<INTEL_SNAPSHOT>_p<COLLECTION_SNAPSHOT>.ebuild
|
62 |
|
# 2. The INTEL_SNAPSHOT upstream is located at: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files
|
63 |
|
# 3. The COLLECTION_SNAPSHOT is created manually using the following steps:
|
64 |
|
# a. Clone the repository https://github.com/platomav/CPUMicrocodes
|
65 |
|
# b. Rename the Intel directory to intel-microcode-collection-<YYYYMMDD>
|
66 |
|
# c. From the CPUMicrocodes directory tar and xz compress the contents of intel-microcode-collection-<YYYYMMDD>:
|
67 |
|
# tar -cJf intel-microcode-collection-<YYYYMMDD>.tar.xz intel-microcode-collection-<YYYYMMDD>/
|
68 |
|
# d. This file can go in your devspace, add the URL to SRC_URI if it's not there
|
69 |
|
# https://dev.gentoo.org/~<dev nick>/dist/intel-microcode/intel-microcode-collection-${COLLECTION_SNAPSHOT}.tar.xz
|
70 |
|
|
71 |
77 |
pkg_pretend() {
|
72 |
78 |
use initramfs && mount-boot_pkg_pretend
|
73 |
79 |
}
|