From d3d1b88cd5e4704833b4415466808c2d3115e097 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Thu, 27 Nov 2014 14:16:50 +0100 Subject: [PATCH] meta-digi-dey: Add dey-image-tiny, a busybox only image. This can be used as a template for size optimized images. It constraints the use of X11 related packages and the image types used. To build, add the following to your conf/local.conf: DISTRO_FEATURES_remove = "x11" Signed-off-by: Alex Gonzalez --- .../recipes-core/images/dey-image-tiny.bb | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 meta-digi-dey/recipes-core/images/dey-image-tiny.bb diff --git a/meta-digi-dey/recipes-core/images/dey-image-tiny.bb b/meta-digi-dey/recipes-core/images/dey-image-tiny.bb new file mode 100644 index 000000000..b62c9300d --- /dev/null +++ b/meta-digi-dey/recipes-core/images/dey-image-tiny.bb @@ -0,0 +1,34 @@ +# +# Copyright (C) 2014 Digi International. +# +DESCRIPTION = "DEY busybox only based image." + +IMAGE_INSTALL= "\ + base-files \ + base-passwd \ + busybox \ + busybox-static-nodes \ + sysvinit \ + initscripts \ + ${ROOTFS_PKGMANAGE_BOOTSTRAP} \ + ${CORE_IMAGE_EXTRA_INSTALL} \ +" + +IMAGE_LINGUAS = " " + +LICENSE = "MIT" + +inherit core-image +inherit dey-image +inherit distro_features_check + +# Add 'x11' to CONFLICT_DISTRO_FEATURES for 'dey-image-tiny' family of recipes +CONFLICT_DISTRO_FEATURES += "x11" + +IMAGE_ROOTFS_SIZE ?= "8192" + +IMAGE_FSTYPES_remove = "ext4" +IMAGE_FSTYPES_append = " ext2" + +BAD_RECOMMENDATIONS += "busybox-syslog" +ROOTFS_POSTPROCESS_COMMAND += "dey_rootfs_tuning;"