summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong, Jonathan <jonathan.yong@intel.com>2019-06-21 05:30:31 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2019-07-04 02:16:09 (GMT)
commitcba66dfb7bb96f7b711db8f9c12a325e33af5fd4 (patch)
treee10f5792fcd853a18143a4cb778de723572ccc8f
parent569f396dc5ed6ae0a3657c1bdd9092870b5588e7 (diff)
downloadmeta-intel-cba66dfb7bb96f7b711db8f9c12a325e33af5fd4.tar.gz
intel-microcode: fix microcode loading on newer kernels
The /dev/microcode interface and microcode-ctl utility has been deprecated in favor of the new kernel /sys/devices/system/cpu/microcode/reload interface as documented in: https://github.com/torvalds/linux/blob/master/Documentation/x86/microcode.rst It expects the microcode binaries to be split out and loaded from /lib/firmware, eg: /lib/firmware/intel-ucode/06-01-01 /lib/firmware/intel-ucode/06-01-02 /lib/firmware/intel-ucode/06-01-06 /lib/firmware/intel-ucode/06-01-07 /lib/firmware/intel-ucode/06-01-09 ... This change does not affect the earlyfw cpio generated by inte-ucode. Signed-off-by: Yong, Jonathan <jonathan.yong@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--recipes-core/microcode/intel-microcode_20190618.bb10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-core/microcode/intel-microcode_20190618.bb b/recipes-core/microcode/intel-microcode_20190618.bb
index 2edf947..fd68230 100644
--- a/recipes-core/microcode/intel-microcode_20190618.bb
+++ b/recipes-core/microcode/intel-microcode_20190618.bb
@@ -45,10 +45,10 @@ do_compile() {
45} 45}
46 46
47do_install() { 47do_install() {
48 install -d ${D}${base_libdir}/firmware/intel-ucode/ 48 install -d ${D}${nonarch_base_libdir}/firmware/intel-ucode/
49 install ${WORKDIR}/microcode_${PV}.bin ${D}${base_libdir}/firmware/intel-ucode/ 49 ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \
50 cd ${D}${base_libdir}/firmware/intel-ucode/ 50 --write-firmware=${D}${nonarch_base_libdir}/firmware/intel-ucode \
51 ln -sf microcode_${PV}.bin microcode.bin 51 ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/*
52} 52}
53 53
54do_deploy() { 54do_deploy() {
@@ -63,6 +63,6 @@ addtask deploy before do_build after do_compile
63 63
64PACKAGES = "${PN}" 64PACKAGES = "${PN}"
65 65
66FILES_${PN} = "${base_libdir}" 66FILES_${PN} = "${nonarch_base_libdir}"
67 67
68UPSTREAM_CHECK_GITTAGREGEX = "^microcode-(?P<pver>(\d+)[a-z])$" 68UPSTREAM_CHECK_GITTAGREGEX = "^microcode-(?P<pver>(\d+)[a-z])$"