From c68a9d255a67c74befdd520da76a94f0db2faf6d Mon Sep 17 00:00:00 2001 From: David Escalona Date: Tue, 13 Dec 2016 11:37:38 +0100 Subject: [PATCH] recovery: add recipe to generate the recovery ramdisk image - This recipe generates the recovery ramdisk image with the contents of the recovery ramdisk tree (recovery-initramfs) and other packages. Signed-off-by: David Escalona --- .../images/dey-image-recovery-initramfs.bb | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 meta-digi-dey/recipes-core/images/dey-image-recovery-initramfs.bb 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 new file mode 100644 index 000000000..b04fca1a2 --- /dev/null +++ b/meta-digi-dey/recipes-core/images/dey-image-recovery-initramfs.bb @@ -0,0 +1,33 @@ +# Copyright (C) 2016 Digi International. + +DESCRIPTION = "Recovery initramfs image" +LICENSE = "MIT" + +PACKAGE_INSTALL = " \ + busybox \ + recovery-initramfs \ + swupdate \ + trustfence-tool \ + u-boot-fw-utils \ + wipe \ +" + +PACKAGE_INSTALL_append_ccimx6 = " e2fsprogs-mke2fs parted" +PACKAGE_INSTALL_append_ccimx6ul = " mtd-utils-ubifs" + +# Do not pollute the initrd image with rootfs features +IMAGE_FEATURES = "" +IMAGE_LINGUAS = "" + +IMAGE_FSTYPES = "cpio.gz.u-boot.tf" +inherit core-image image_types_uboot + +IMAGE_ROOTFS_SIZE = "8192" + +# Remove some packages added via recommendations +BAD_RECOMMENDATIONS += " \ + busybox-syslog \ + openssl-conf \ +" + +export IMAGE_BASENAME = "dey-image-recovery-initramfs"