[meta-intel] [Patch v3 5/7] image-ucode.bbclass: a new bbclass for initramfs images
nitin.a.kamble at intel.com
nitin.a.kamble at intel.com
Thu Jul 17 15:49:15 PDT 2014
From: Nitin A Kamble <nitin.a.kamble at intel.com>
This provides extensions to the image_types and image-live classes to enable
the initramfs recipes with early microcode support.
Look at these bbclass files from the oecore layer for context, as this is
extending functionality available there.
meta/classes/image_types.bbclass
meta/classes/image_live.bbclass
Signed-off-by: Nitin A Kamble <nitin.a.kamble at intel.com>
Acked-by: Darren Hart <dvhart at linux.intel.com>
---
classes/image-ucode.bbclass | 17 +++++++++++++++++
1 file changed, 17 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..a0a3240
--- /dev/null
+++ b/classes/image-ucode.bbclass
@@ -0,0 +1,17 @@
+# This provides extensions to the image_types and image-live classes to enable
+# the initramfs recipes with early microcode support.
+#
+# Look at these bbclass files from the oecore layer for context, as this is
+# extending functionality available there.
+# meta/classes/image_types.bbclass
+# meta/classes/image_live.bbclass
+#
+
+# 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.ucode"
+COMPRESS_DEPENDS_gz.ucode = "${COMPRESS_DEPENDS_gz}"
+
+# Extentions to image-live.bbclass
+EARLY_UCODE_CPIO ?= "${DEPLOY_DIR_IMAGE}/microcode.cpio"
--
1.8.1.4
More information about the meta-intel
mailing list