From: Nitin A Kamble <[email protected]>

This provides extensions to the image_types and image-live classes to enable
the initramfs recipes with early microcode support.

Signed-off-by: Nitin A Kamble <[email protected]>
---
 classes/image-ucode.bbclass | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 classes/image-ucode.bbclass

diff --git a/classes/image-ucode.bbclass b/classes/image-ucode.bbclass
new file mode 100644
index 0000000..083e1f5
--- /dev/null
+++ b/classes/image-ucode.bbclass
@@ -0,0 +1,11 @@
+# extentions to image_types.bbclass
+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.cpio"
+COMPRESS_DEPENDS_gz.ucode = "${COMPRESS_DEPENDS_gz}"
+do_rootfs[depends] += "intel-earlyload-microcode-image:do_rootfs"
+
+# Extentions to image-live.bbclass
+UCODE_CPIO_IMAGE ?= "earlyload_microcode"
+EARLY_UCODE_CPIO ?= "${DEPLOY_DIR_IMAGE}/${UCODE_CPIO_IMAGE}-${MACHINE}.cpio"
+
-- 
1.8.1.4

-- 
_______________________________________________
meta-intel mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to