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.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.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index edfb2d68c5..79a56f0408 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -29,6 +29,9 @@ LDCONFIGDEPEND_libc-uclibc = "" | |||
29 | do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ${LDCONFIGDEPEND}" | 29 | do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ${LDCONFIGDEPEND}" |
30 | do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot" | 30 | do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot" |
31 | 31 | ||
32 | IMAGE_TYPE = ${@base_contains("IMAGE_FSTYPES", "live", "live", "empty", d)} | ||
33 | inherit image-${IMAGE_TYPE} | ||
34 | |||
32 | python () { | 35 | python () { |
33 | deps = bb.data.getVarFlag('do_rootfs', 'depends', d) or "" | 36 | deps = bb.data.getVarFlag('do_rootfs', 'depends', d) or "" |
34 | for type in (bb.data.getVar('IMAGE_FSTYPES', d, True) or "").split(): | 37 | for type in (bb.data.getVar('IMAGE_FSTYPES', d, True) or "").split(): |