Patchwork [meta-fsl-arm,v2,15/16] mfgtool-initramfs-image.bbclass: Abstracts the MfgTool's initramfs needs

login
register
mail settings
Submitter Otavio Salvador
Date Feb. 26, 2014, 9:50 p.m.
Message ID <1393451420-3041-16-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/67525/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Feb. 26, 2014, 9:50 p.m.
Manage the initramfs requirements for Manufacturing Tool use and allow
future addition of new filesystem support if needed.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

Changes in v2:
- Add comment block in the class (Daiane)
- Use a DEFAULT_FS_SUPPORT variable so it is clear the goal of the var
- Add a comment about fs support

 classes/mfgtool-initramfs-image.bbclass | 40 +++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 classes/mfgtool-initramfs-image.bbclass

Patch

diff --git a/classes/mfgtool-initramfs-image.bbclass b/classes/mfgtool-initramfs-image.bbclass
new file mode 100644
index 0000000..a6f8914
--- /dev/null
+++ b/classes/mfgtool-initramfs-image.bbclass
@@ -0,0 +1,40 @@ 
+# Generates a Manufacturing Tool Initramfs image
+#
+# This generates the initramfs used for the installation process. The
+# image provides the utilities which are used, in the target, during
+# the process and receive the commands from the MfgTool application.
+#
+# Copyright 2014 (C) O.S. Systems Software LTDA.
+
+DEPENDS += "u-boot-mfgtool linux-mfgtool"
+
+PACKAGE_GROUP_mtd = "packagegroup-fsl-mfgtool-mtd"
+PACKAGE_GROUP_extfs = "packagegroup-fsl-mfgtool-extfs"
+
+IMAGE_FSTYPES = "cpio.gz.u-boot"
+IMAGE_ROOTFS_SIZE ?= "8192"
+IMAGE_CLASSES = "image_types_uboot"
+
+# Filesystems enabled by default
+DEFAULT_FS_SUPPORT = " \
+    mtd \
+    extfs \
+"
+
+IMAGE_FEATURES = " \
+    ${DEFAULT_FS_SUPPORT} \
+    \
+    read-only-rootfs \
+"
+
+# Avoid installation of syslog
+BAD_RECOMMENDATIONS += "busybox-syslog"
+
+# Avoid static /dev
+USE_DEVFS = "1"
+
+inherit core-image
+
+CORE_IMAGE_BASE_INSTALL = " \
+    ${CORE_IMAGE_EXTRA_INSTALL} \
+"