aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong, Jonathan <jonathan.yong@intel.com>2019-12-02 13:57:07 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2019-12-03 13:28:24 +0800
commit1470348df12e4fa9df66aee50b8faba64e16cdad (patch)
tree27de8c959ee3bef503313e152ac49d6fbdd4669b
parentf227e3a0cac5a6193550f12426366b6afad2f778 (diff)
downloadmeta-intel-1470348df12e4fa9df66aee50b8faba64e16cdad.tar.gz
meta-intel-1470348df12e4fa9df66aee50b8faba64e16cdad.tar.bz2
meta-intel-1470348df12e4fa9df66aee50b8faba64e16cdad.zip
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> Signed-off-by: Naveen Saini <naveen.kumar.saini@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 2edf947e..fd68230a 100644
--- a/recipes-core/microcode/intel-microcode_20190618.bb
+++ b/recipes-core/microcode/intel-microcode_20190618.bb
@@ -45,10 +45,10 @@ do_compile() {
}
do_install() {
- install -d ${D}${base_libdir}/firmware/intel-ucode/
- install ${WORKDIR}/microcode_${PV}.bin ${D}${base_libdir}/firmware/intel-ucode/
- cd ${D}${base_libdir}/firmware/intel-ucode/
- ln -sf microcode_${PV}.bin microcode.bin
+ 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() {
@@ -63,6 +63,6 @@ addtask deploy before do_build after do_compile
PACKAGES = "${PN}"
-FILES_${PN} = "${base_libdir}"
+FILES_${PN} = "${nonarch_base_libdir}"
UPSTREAM_CHECK_GITTAGREGEX = "^microcode-(?P<pver>(\d+)[a-z])$"