aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/microcode/intel-microcode_20190918.bb
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2019-12-02 13:57:08 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2019-12-03 13:28:24 +0800
commit10bafedde5b339e21b3514f8d8c209a97b3b3b83 (patch)
tree361c91a9c97c70d5ae49039dcdbd9e4a71eb0953 /recipes-core/microcode/intel-microcode_20190918.bb
parent1470348df12e4fa9df66aee50b8faba64e16cdad (diff)
downloadmeta-intel-10bafedde5b339e21b3514f8d8c209a97b3b3b83.tar.gz
meta-intel-10bafedde5b339e21b3514f8d8c209a97b3b3b83.tar.bz2
meta-intel-10bafedde5b339e21b3514f8d8c209a97b3b3b83.zip
intel-microcode: upgrade 20190618 -> 20190918
Release notes: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/blob/5ada2f32ed7d216e38823f1320358e4679941990/releasenote Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-core/microcode/intel-microcode_20190918.bb')
-rw-r--r--recipes-core/microcode/intel-microcode_20190918.bb68
1 files changed, 68 insertions, 0 deletions
diff --git a/recipes-core/microcode/intel-microcode_20190918.bb b/recipes-core/microcode/intel-microcode_20190918.bb
new file mode 100644
index 00000000..310286c7
--- /dev/null
+++ b/recipes-core/microcode/intel-microcode_20190918.bb
@@ -0,0 +1,68 @@
+SUMMARY = "Intel Processor Microcode Datafile for Linux"
+HOMEPAGE = "http://www.intel.com/"
+DESCRIPTION = "The microcode data file contains the latest microcode\
+ definitions for all Intel processors. Intel releases microcode updates\
+ to correct processor behavior as documented in the respective processor\
+ specification updates. While the regular approach to getting this microcode\
+ update is via a BIOS upgrade, Intel realizes that this can be an\
+ administrative hassle. The Linux operating system and VMware ESX\
+ products have a mechanism to update the microcode after booting.\
+ For example, this file will be used by the operating system mechanism\
+ if the file is placed in the /etc/firmware directory of the Linux system."
+
+LICENSE = "Intel-Microcode-License"
+LIC_FILES_CHKSUM = "file://license;md5=99b296eb12723fd1eeb52e24971eed84"
+
+SRC_URI = "git://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files.git;protocol=https \
+ "
+
+SRCREV = "5ada2f32ed7d216e38823f1320358e4679941990"
+
+DEPENDS = "iucode-tool-native"
+S = "${WORKDIR}/git"
+
+COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit deploy
+
+# Use any of the iucode_tool parameters to filter specific microcodes from the data file
+# For further information, check the iucode-tool's manpage : http://manned.org/iucode-tool
+UCODE_FILTER_PARAMETERS ?= ""
+
+do_compile() {
+ ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \
+ ${UCODE_FILTER_PARAMETERS} \
+ --overwrite \
+ --write-to=${WORKDIR}/microcode_${PV}.bin \
+ ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/*
+
+ ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \
+ ${UCODE_FILTER_PARAMETERS} \
+ --overwrite \
+ --write-earlyfw=${WORKDIR}/microcode_${PV}.cpio \
+ ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/*
+}
+
+do_install() {
+ install -d ${D}${nonarch_base_libdir}/firmware/intel-ucode/
+ ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \
+ --write-firmware=${D}${nonarch_base_libdir}/firmware/intel-ucode \
+ ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/*
+}
+
+do_deploy() {
+ install -d ${DEPLOYDIR}
+ install ${WORKDIR}/microcode_${PV}.cpio ${DEPLOYDIR}/
+ cd ${DEPLOYDIR}
+ rm -f microcode.cpio
+ ln -sf microcode_${PV}.cpio microcode.cpio
+}
+
+addtask deploy before do_build after do_compile
+
+PACKAGES = "${PN}"
+
+FILES_${PN} = "${nonarch_base_libdir}"
+
+UPSTREAM_CHECK_GITTAGREGEX = "^microcode-(?P<pver>(\d+)[a-z])$"