]> code.ossystems Code Review - meta-freescale.git/commitdiff
mfgtool-initramfs-image.bbclass: Abstracts the MfgTool's initramfs needs
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 17 Jan 2014 21:15:09 +0000 (19:15 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 3 Mar 2014 21:19:42 +0000 (18:19 -0300)
Manage the initramfs requirements for Manufacturing Tool use and allow
future addition of new filesystem support if needed.

Change-Id: Ia3a1f0d32d1a12209262096162adeb36909c509b
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/classes/mfgtool-initramfs-image.bbclass [new file with mode: 0644]

diff --git a/meta-fsl-arm/classes/mfgtool-initramfs-image.bbclass b/meta-fsl-arm/classes/mfgtool-initramfs-image.bbclass
new file mode 100644 (file)
index 0000000..a6f8914
--- /dev/null
@@ -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} \
+"