From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [Consolidated & Tested 34/35] classes/image*: Revamp creation of live images
Date: Wed, 27 Jul 2011 12:03:38 +0100 [thread overview]
Message-ID: <1311764618.2344.350.camel@rex> (raw)
In-Reply-To: <32b657583d80fc2bd481b1e5ea12af01dda14e49.1311752531.git.sgw@linux.intel.com>
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@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
next prev parent reply other threads:[~2011-07-27 11:08 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-27 7:46 [Consolidated & Tested 00/35] July 27 Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 01/35] meta/conf/local.conf.sample: remove oprofileui-native related settings Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 02/35] meta/conf/local.conf.sample: improve comments/layout Saul Wold
2011-07-27 9:36 ` Phil Blundell
2011-07-27 15:52 ` Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 03/35] meta/conf/local.conf.sample: improve terminal examples/comments Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 04/35] meta/conf/local.conf.sample: remove nonfunctional BBINCLUDELOGS setting Saul Wold
2011-07-27 10:53 ` Paul Eggleton
2011-07-27 7:46 ` [Consolidated & Tested 05/35] libxcb: Add missing DEPENDS on libxdmcp Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 06/35] dropbear: don't override DISTRO_TYPE if it is already set Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 07/35] console-tools: removed wildcard from SRC_URI Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 08/35] module-init-tools: do not build static utilities for -cross Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 09/35] eglibc: remove unnecessary FILESPATHPKG usage Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 10/35] scripts/combo-layer: keep carriage returns at the end of lines Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 11/35] machine/qemu: set preferred linux-yocto kernel version Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 12/35] libcap: Update to 2.22 with License Clarification Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 13/35] libpam: update to 1.1.4 and add subpackage xtests Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 14/35] cups: add pam support Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 15/35] screen: " Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 16/35] sudo: " Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 17/35] cronie: enable PAM support for cronie Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 18/35] shadow: update pam related configure files Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 19/35] at: enable pam support Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 20/35] openssh: Support PAM Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 21/35] dropbear: Support pam Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 22/35] polkit: " Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 23/35] siteinfo: Move certain samba entries to common-linux Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 24/35] siteinfo: Move certain bash " Saul Wold
2011-07-27 9:44 ` Phil Blundell
2011-07-27 10:47 ` Richard Purdie
2011-07-27 15:35 ` Tom Rini
2011-07-27 15:52 ` Phil Blundell
2011-07-27 15:55 ` Tom Rini
2011-07-27 7:47 ` [Consolidated & Tested 25/35] x86_64-linux siteinfo: Add bash info Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 26/35] siteinfo: Move certain mysql entries to common-linux Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 27/35] siteinfo: Move the rp-pppoe entry " Saul Wold
2011-07-27 9:47 ` Phil Blundell
2011-07-27 15:36 ` Tom Rini
2011-07-27 15:40 ` Richard Purdie
2011-07-27 15:43 ` Tom Rini
2011-07-27 15:47 ` Tom Rini
2011-07-27 7:47 ` [Consolidated & Tested 28/35] siteinfo: Move certain db entries " Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 29/35] siteinfo: Move general realloc/malloc values to common-$libc Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 30/35] siteinfo: Move (getpgrp|setpgrp|setgrent|*get{pwuid, grgid}) to common-libc Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 31/35] siteinfo: Rework the siteinfo for powerpc to fix uclibc fallout Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 32/35] Remove -live.bb recipes Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 33/35] Remove -directdisk.bb recipes Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 34/35] classes/image*: Revamp creation of live images Saul Wold
2011-07-27 11:03 ` Richard Purdie [this message]
2011-07-27 7:47 ` [Consolidated & Tested 35/35] utils.bbclass: Don't forget to pass the cmdline options Saul Wold
2011-07-27 11:06 ` [Consolidated & Tested 00/35] July 27 Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1311764618.2344.350.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox