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 <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2017-03-01 16:56:53 +01:00
parent 14d3f5e83c
commit 16815b1b80
1 changed files with 5 additions and 2 deletions

View File

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