Commit cba66dfb7bb9 ("intel-microcode: fix microcode loading on newer
kernels") effectively disabled microcode filtering for intel-microcode
package.

Add the missing filter parameter to iucode_tool command to install only
necessary files. Do not generate microcode bin file in compile step as
it is no longer needed.

Signed-off-by: Tomasz Moń <[email protected]>
---
 recipes-core/microcode/intel-microcode_20210608.bb | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/recipes-core/microcode/intel-microcode_20210608.bb 
b/recipes-core/microcode/intel-microcode_20210608.bb
index 0487b219..2686dd97 100644
--- a/recipes-core/microcode/intel-microcode_20210608.bb
+++ b/recipes-core/microcode/intel-microcode_20210608.bb
@@ -31,12 +31,6 @@ inherit deploy
 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 \
@@ -47,6 +41,7 @@ do_compile() {
 do_install() {
        install -d ${D}${nonarch_base_libdir}/firmware/intel-ucode/
        ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \
+       ${UCODE_FILTER_PARAMETERS} \
        --write-firmware=${D}${nonarch_base_libdir}/firmware/intel-ucode \
        ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/*
 }
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7420): 
https://lists.yoctoproject.org/g/meta-intel/message/7420
Mute This Topic: https://lists.yoctoproject.org/mt/89016267/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to