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

Daiane Angolini daiane.list at gmail.com
Tue Feb 25 10:13:22 PST 2014


On Mon, Feb 24, 2014 at 3:52 PM, Otavio Salvador
<otavio at ossystems.com.br> wrote:
> Manage the initramfs requirements for Manufacturing Tool use and allow
> future addition of new filesystem support if needed.
>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
>
>  classes/mfgtool-initramfs-image.bbclass | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>  create mode 100644 classes/mfgtool-initramfs-image.bbclass
>
> diff --git a/classes/mfgtool-initramfs-image.bbclass b/classes/mfgtool-initramfs-image.bbclass
> new file mode 100644
> index 0000000..3c2e445
> --- /dev/null
> +++ b/classes/mfgtool-initramfs-image.bbclass
> @@ -0,0 +1,26 @@

Would be possible to add a DESCRIPTION in a class? In case it´s not
possible, would be nice to add a comment only to inform the goal of
this class?




> +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"

Do you intent to not allow IMAGE_FSTYPES to be overridden?


> +IMAGE_ROOTFS_SIZE ?= "8192"
> +IMAGE_CLASSES = "image_types_uboot"
> +
> +IMAGE_FEATURES = " \

When you say future addition of new file system support you mean a
patch to add it on recipe or you mean it being overridden by
local.conf?




Daiane
> +    mtd \
> +    extfs \
> +    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} \
> +"
> --
> 1.9.0
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale


More information about the meta-freescale mailing list