[meta-intel] [Patch v4 4/6] image-ucode.bbclass: a new bbclass for initramfs images

Hart, Darren darren.hart at intel.com
Mon Jul 21 12:44:42 PDT 2014


On 7/21/14, 12:29, "Burton, Ross" <ross.burton at intel.com> wrote:

>On 19 July 2014 01:18,  <nitin.a.kamble at intel.com> wrote:
>> +IMAGE_TYPES += "cpio.gz.ucode"
>> +COMPRESSIONTYPES += "gz.ucode"
>> +COMPRESS_CMD_gz.ucode = "${COMPRESS_CMD_gz}; cat ${EARLY_UCODE_CPIO}
>>${IMAGE_NAME}.rootfs.${type}.gz > ${IMAGE_NAME}.rootfs.${type}.gz.ucode"
>> +COMPRESS_DEPENDS_gz.ucode = "${COMPRESS_DEPENDS_gz} intel-microcode"
>
>Something about this has always bugged me and I just realised what it
>is.  As I understand it the kernel allows an arbitrary number of cpio
>archives to be appended to the kernel, but our image creation code
>expects one.  This class is basically working around that limitation
>by being a specialised image type that appends another hard-coded
>file.
>
>If the image creation code was changed to expect a list, then we
>wouldn't need this class at all but could simply do INITRD +=
>$(EARLY_UCODE_CPIO).
>
>Ross
>

Ooooh, clever boy.....

-- 
Darren Hart					Open Source Technology Center
darren.hart at intel.com				            Intel Corporation




More information about the meta-intel mailing list