[meta-intel] [Patch v4 5/6] core-image-minimal-initramfs: extend to support early microcode loading

Richard Purdie richard.purdie at linuxfoundation.org
Mon Jul 21 02:43:21 PDT 2014


On Fri, 2014-07-18 at 17:18 -0700, nitin.a.kamble at intel.com wrote:
> From: Nitin A Kamble <nitin.a.kamble at intel.com>
> 
> If the microcode support is enabled in the license flags, then consume the
> microcode.cpio to generate an initrd which is extended with the earlyload
> microcode support.
> 
> This recipe now can optionally generate this additional initrd image:
>   core-image-minimal-initramfs-${MACHINE}.cpio.gz.ucode
> 
> Signed-off-by: Nitin A Kamble <nitin.a.kamble at intel.com>
> ---
>  common/recipes-core/images/core-image-minimal-initramfs.bbappend | 4 ++++
>  1 file changed, 4 insertions(+)
>  create mode 100644 common/recipes-core/images/core-image-minimal-initramfs.bbappend
> 
> diff --git a/common/recipes-core/images/core-image-minimal-initramfs.bbappend b/common/recipes-core/images/core-image-minimal-initramfs.bbappend
> new file mode 100644
> index 0000000..1592630
> --- /dev/null
> +++ b/common/recipes-core/images/core-image-minimal-initramfs.bbappend
> @@ -0,0 +1,4 @@
> +inherit image-ucode
> +
> +# if the microcode support is enabled, then build the microcode enabled initrd
> +IMAGE_FSTYPES .= "${@['', '.ucode']['license_intel-microcode' in d.getVar('LICENSE_FLAGS_WHITELIST', True)]}"

Nearly there but this also needs to check if this is an x86 BSP. There
is no point in adding this to an ARM image for example. "x86" in
OVERRIDES might be a good check iirc.

Cheers,

Richard



More information about the meta-intel mailing list