summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-27 12:43:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-28 12:27:53 +0000
commit126f634207cd11f8e4b0324b90613b76193ca8d2 (patch)
tree60a78a422051164059f0f3b6cce40e59de7f4090 /meta/classes/image.bbclass
parent93d157b7245182d88395b2e361db28528dd3af19 (diff)
downloadpoky-126f634207cd11f8e4b0324b90613b76193ca8d2.tar.gz
image_types: Refactor compression code into a generic compression solution
The current approach of adding each different compressed image type doesn't scale. This patch changes the code so compressed images for each form are automatically available using the form <type>.<compression type> in IMAGE_FSTYPES. This doesn't change any existing externally visible behaviour and the image generation process becomes more efficient as a result too. (From OE-Core rev: b7e4ed41ee480f00b7265341e9e2d2c2b9135143) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 54ab157a44..4db55ff779 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -75,9 +75,7 @@ inherit image-${IMAGE_TYPE}
75 75
76python () { 76python () {
77 deps = d.getVarFlag('do_rootfs', 'depends') or "" 77 deps = d.getVarFlag('do_rootfs', 'depends') or ""
78 for type in (d.getVar('IMAGE_FSTYPES', True) or "").split(): 78 deps += imagetypes_getdepends(d)
79 for dep in ((d.getVar('IMAGE_DEPENDS_%s' % type) or "").split() or []):
80 deps += " %s:do_populate_sysroot" % dep
81 for dep in (d.getVar('EXTRA_IMAGEDEPENDS', True) or "").split(): 79 for dep in (d.getVar('EXTRA_IMAGEDEPENDS', True) or "").split():
82 deps += " %s:do_populate_sysroot" % dep 80 deps += " %s:do_populate_sysroot" % dep
83 d.setVarFlag('do_rootfs', 'depends', deps) 81 d.setVarFlag('do_rootfs', 'depends', deps)