diff options
| author | Tomasz Moń <tomasz.mon@camlingroup.com> | 2022-02-04 11:48:07 +0100 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2022-02-09 13:49:26 +0800 |
| commit | c2d12c05cd63bf09aada9ee751d0ab8f75ab54f2 (patch) | |
| tree | 440b51fc2399f4a938b3823833e009cdaa53ee2e | |
| parent | 64bc878144d7faa6a823ee103db125d8914ff7e3 (diff) | |
| download | meta-intel-c2d12c05cd63bf09aada9ee751d0ab8f75ab54f2.tar.gz | |
intel-microcode: use microcode filter for package
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ń <tomasz.mon@camlingroup.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
| -rw-r--r-- | recipes-core/microcode/intel-microcode_20210608.bb | 7 |
1 files changed, 1 insertions, 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 | |||
| @@ -34,12 +34,6 @@ do_compile() { | |||
| 34 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ | 34 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ |
| 35 | ${UCODE_FILTER_PARAMETERS} \ | 35 | ${UCODE_FILTER_PARAMETERS} \ |
| 36 | --overwrite \ | 36 | --overwrite \ |
| 37 | --write-to=${WORKDIR}/microcode_${PV}.bin \ | ||
| 38 | ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/* | ||
| 39 | |||
| 40 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ | ||
| 41 | ${UCODE_FILTER_PARAMETERS} \ | ||
| 42 | --overwrite \ | ||
| 43 | --write-earlyfw=${WORKDIR}/microcode_${PV}.cpio \ | 37 | --write-earlyfw=${WORKDIR}/microcode_${PV}.cpio \ |
| 44 | ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/* | 38 | ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/* |
| 45 | } | 39 | } |
| @@ -47,6 +41,7 @@ do_compile() { | |||
| 47 | do_install() { | 41 | do_install() { |
| 48 | install -d ${D}${nonarch_base_libdir}/firmware/intel-ucode/ | 42 | install -d ${D}${nonarch_base_libdir}/firmware/intel-ucode/ |
| 49 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ | 43 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ |
| 44 | ${UCODE_FILTER_PARAMETERS} \ | ||
| 50 | --write-firmware=${D}${nonarch_base_libdir}/firmware/intel-ucode \ | 45 | --write-firmware=${D}${nonarch_base_libdir}/firmware/intel-ucode \ |
| 51 | ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/* | 46 | ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/* |
| 52 | } | 47 | } |
