diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-07-26 08:30:08 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-27 11:54:53 +0100 |
commit | b3ff63796cd6629975ff0a726ba18cc168e0a2b2 (patch) | |
tree | 7efc20a3ed129bc51de47502369863a5acbd7865 /meta/classes/image-live.bbclass | |
parent | 190b4f17f5fc9879e680278dd0e31e26e5f5bca0 (diff) | |
download | openembedded-core-b3ff63796cd6629975ff0a726ba18cc168e0a2b2.tar.gz openembedded-core-b3ff63796cd6629975ff0a726ba18cc168e0a2b2.tar.bz2 openembedded-core-b3ff63796cd6629975ff0a726ba18cc168e0a2b2.tar.xz openembedded-core-b3ff63796cd6629975ff0a726ba18cc168e0a2b2.zip |
classes/image*: Revamp creation of live images
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>
Diffstat (limited to 'meta/classes/image-live.bbclass')
-rw-r--r-- | meta/classes/image-live.bbclass | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass new file mode 100644 index 000000000..c910488d6 --- /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 bootimg |