From 16815b1b8091e6a90134979134fad058c2354922 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Wed, 1 Mar 2017 16:56:53 +0100 Subject: [PATCH] dey-image-recovery-initramfs: force image type to 'cpio' This recipe is expected to create just an initramfs image, so force the image FSTYPE with a python anonymous function, so there is no way to change/append/override it from any other configuration file. This prevents build failures due to circular dependences if for example you add: IMAGE_FSTYPES_append = " recovery.vfat" to your project's local.conf. Signed-off-by: Javier Viguera --- .../recipes-core/images/dey-image-recovery-initramfs.bb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meta-digi-dey/recipes-core/images/dey-image-recovery-initramfs.bb b/meta-digi-dey/recipes-core/images/dey-image-recovery-initramfs.bb index 42c91b785..9864a4557 100644 --- a/meta-digi-dey/recipes-core/images/dey-image-recovery-initramfs.bb +++ b/meta-digi-dey/recipes-core/images/dey-image-recovery-initramfs.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2016 Digi International. +# Copyright (C) 2016-2017, Digi International Inc. DESCRIPTION = "Recovery initramfs image" LICENSE = "MIT" @@ -20,7 +20,10 @@ PACKAGE_INSTALL_append_ccimx6ul = " mtd-utils-ubifs" IMAGE_FEATURES = "" IMAGE_LINGUAS = "" -IMAGE_FSTYPES = "cpio.gz.u-boot.tf" +python() { + d.setVar('IMAGE_FSTYPES', 'cpio.gz.u-boot.tf') +} + inherit core-image image_types_uboot IMAGE_ROOTFS_SIZE = "8192"