From b7e4ed41ee480f00b7265341e9e2d2c2b9135143 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 27 Feb 2012 12:43:49 +0000 Subject: 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 . in IMAGE_FSTYPES. This doesn't change any existing externally visible behaviour and the image generation process becomes more efficient as a result too. Signed-off-by: Richard Purdie --- meta/classes/image.bbclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'meta/classes/image.bbclass') diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 54ab157a4..4db55ff77 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -75,9 +75,7 @@ inherit image-${IMAGE_TYPE} python () { deps = d.getVarFlag('do_rootfs', 'depends') or "" - for type in (d.getVar('IMAGE_FSTYPES', True) or "").split(): - for dep in ((d.getVar('IMAGE_DEPENDS_%s' % type) or "").split() or []): - deps += " %s:do_populate_sysroot" % dep + deps += imagetypes_getdepends(d) for dep in (d.getVar('EXTRA_IMAGEDEPENDS', True) or "").split(): deps += " %s:do_populate_sysroot" % dep d.setVarFlag('do_rootfs', 'depends', deps) -- cgit v1.2.3