diff options
Diffstat (limited to 'common/recipes-core/microcode/intel-microcode_20180425.bb')
-rw-r--r-- | common/recipes-core/microcode/intel-microcode_20180425.bb | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/common/recipes-core/microcode/intel-microcode_20180425.bb b/common/recipes-core/microcode/intel-microcode_20180425.bb new file mode 100644 index 00000000..e864746d --- /dev/null +++ b/common/recipes-core/microcode/intel-microcode_20180425.bb | |||
@@ -0,0 +1,68 @@ | |||
1 | SUMMARY = "Intel Processor Microcode Datafile for Linux" | ||
2 | HOMEPAGE = "http://www.intel.com/" | ||
3 | DESCRIPTION = "The microcode data file contains the latest microcode\ | ||
4 | definitions for all Intel processors. Intel releases microcode updates\ | ||
5 | to correct processor behavior as documented in the respective processor\ | ||
6 | specification updates. While the regular approach to getting this microcode\ | ||
7 | update is via a BIOS upgrade, Intel realizes that this can be an\ | ||
8 | administrative hassle. The Linux operating system and VMware ESX\ | ||
9 | products have a mechanism to update the microcode after booting.\ | ||
10 | For example, this file will be used by the operating system mechanism\ | ||
11 | if the file is placed in the /etc/firmware directory of the Linux system." | ||
12 | |||
13 | LICENSE = "Intel-Microcode-License" | ||
14 | LIC_FILES_CHKSUM = "file://Intel-Microcode-License;md5=9052c0dbf7250dc0bef70bd8212b0573" | ||
15 | |||
16 | SRC_URI = "https://downloadmirror.intel.com/27776/eng/microcode-${PV}.tgz \ | ||
17 | file://Intel-Microcode-License \ | ||
18 | " | ||
19 | |||
20 | SRC_URI[md5sum] = "99c80f9229554953a868127cda44e7e3" | ||
21 | SRC_URI[sha256sum] = "f0d2492f4561e2559f6c9471b231cb8262d45762c0e7cccf787be5c189b4e2d6" | ||
22 | DEPENDS = "iucode-tool-native" | ||
23 | S = "${WORKDIR}" | ||
24 | |||
25 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" | ||
26 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
27 | |||
28 | inherit deploy | ||
29 | |||
30 | # Use any of the iucode_tool parameters to filter specific microcodes from the data file | ||
31 | # For further information, check the iucode-tool's manpage : http://manned.org/iucode-tool | ||
32 | UCODE_FILTER_PARAMETERS ?= "" | ||
33 | |||
34 | do_compile() { | ||
35 | rm -f ${WORKDIR}/intel-ucode/list | ||
36 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ | ||
37 | ${UCODE_FILTER_PARAMETERS} \ | ||
38 | --overwrite \ | ||
39 | --write-to=${WORKDIR}/microcode_${PV}.bin \ | ||
40 | ${WORKDIR}/intel-ucode/* | ||
41 | |||
42 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ | ||
43 | ${UCODE_FILTER_PARAMETERS} \ | ||
44 | --overwrite \ | ||
45 | --write-earlyfw=${WORKDIR}/microcode_${PV}.cpio \ | ||
46 | ${WORKDIR}/intel-ucode/* | ||
47 | } | ||
48 | |||
49 | do_install() { | ||
50 | install -d ${D}${base_libdir}/firmware/intel-ucode/ | ||
51 | install ${WORKDIR}/microcode_${PV}.bin ${D}${base_libdir}/firmware/intel-ucode/ | ||
52 | cd ${D}${base_libdir}/firmware/intel-ucode/ | ||
53 | ln -sf microcode_${PV}.bin microcode.bin | ||
54 | } | ||
55 | |||
56 | do_deploy() { | ||
57 | install -d ${DEPLOYDIR} | ||
58 | install ${S}/microcode_${PV}.cpio ${DEPLOYDIR}/ | ||
59 | cd ${DEPLOYDIR} | ||
60 | rm -f microcode.cpio | ||
61 | ln -sf microcode_${PV}.cpio microcode.cpio | ||
62 | } | ||
63 | |||
64 | addtask deploy before do_build after do_compile | ||
65 | |||
66 | PACKAGES = "${PN}" | ||
67 | |||
68 | FILES_${PN} = "${base_libdir}" | ||