[OE-core] [Consolidated & Tested 34/35] classes/image*: Revamp creation of live images
Richard Purdie
richard.purdie at linuxfoundation.org
Wed Jul 27 11:03:38 UTC 2011
On Wed, 2011-07-27 at 00:47 -0700, Saul Wold wrote:
> This creates a live image as an IMAGE_FSTYPES, thus removing the
> need to have additional -live.bb recipes. To create a live image
> one just needs to add live to the IMAGE_FSTYPES list
>
> Signed-off-by: Saul Wold <sgw at linux.intel.com>
> ---
> meta/classes/image-live.bbclass | 13 +++++++++++++
> meta/classes/image.bbclass | 3 +++
> meta/classes/image_types.bbclass | 15 +++++++++++++--
> 3 files changed, 29 insertions(+), 2 deletions(-)
> create mode 100644 meta/classes/image-empty.bbclass
> create mode 100644 meta/classes/image-live.bbclass
>
> diff --git a/meta/classes/image-empty.bbclass b/meta/classes/image-empty.bbclass
> new file mode 100644
> index 0000000..e69de29
> diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass
> new file mode 100644
> index 0000000..2568d5c
> --- /dev/null
> +++ b/meta/classes/image-live.bbclass
> @@ -0,0 +1,13 @@
> +
> +AUTO_SYSLINUXCFG = "1"
> +INITRD = "${DEPLOY_DIR_IMAGE}/core-image-minimal-initramfs-${MACHINE}.cpio.gz"
> +APPEND += "root=/dev/ram0 "
> +TIMEOUT = "10"
> +LABELS += "boot install"
> +
> +ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3"
> +
> +do_bootimg[depends] += "core-image-minimal-initramfs:do_rootfs"
> +do_bootimg[depends] += "${IMAGE_BASENAME}:do_rootfs"
> +
> +inherit image-live
You mean bootimg here but I fixed up the patch ;-)
Cheers,
Richard
More information about the Openembedded-core
mailing list