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 12:02:46 +0100 |
commit | ba8a726b7dbbca8e9ea9cc75964d366d094aa881 (patch) | |
tree | 17e3da2faf29153fb9c17ec12330e3fc7536b957 /meta/classes/image-live.bbclass | |
parent | 39130137e40fe62d7b9bf2c9226a082138217b37 (diff) | |
download | poky-ba8a726b7dbbca8e9ea9cc75964d366d094aa881.tar.gz |
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
(From OE-Core rev: b3ff63796cd6629975ff0a726ba18cc168e0a2b2)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 0000000000..c910488d64 --- /dev/null +++ b/meta/classes/image-live.bbclass | |||
@@ -0,0 +1,13 @@ | |||
1 | |||
2 | AUTO_SYSLINUXCFG = "1" | ||
3 | INITRD = "${DEPLOY_DIR_IMAGE}/core-image-minimal-initramfs-${MACHINE}.cpio.gz" | ||
4 | APPEND += "root=/dev/ram0 " | ||
5 | TIMEOUT = "10" | ||
6 | LABELS += "boot install" | ||
7 | |||
8 | ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3" | ||
9 | |||
10 | do_bootimg[depends] += "core-image-minimal-initramfs:do_rootfs" | ||
11 | do_bootimg[depends] += "${IMAGE_BASENAME}:do_rootfs" | ||
12 | |||
13 | inherit bootimg | ||