From 5e2796aa28e02ae3a076c6593c6533753720b13d Mon Sep 17 00:00:00 2001 From: Laurentiu Palcu Date: Tue, 18 Feb 2014 15:49:43 +0200 Subject: image*.bbclass, bootimg.bbclass: add image type dependencies The following dependencies were manually added in the image creation code. However, in order to have an image dependency mechanism in place, use a new variable, IMAGE_TYPEDEP, to declare that an image type depends on another being already created. The following dependencies are added by this commit: elf -> cpio.gz live -> ext3 vmdk -> ext3 iso -> ext3 hddimg -> ext3 This commit adds also another new variable: IMAGE_TYPES_MASKED. Currently, masking out certain types from IMAGE_FSTYPES was hardcoded in the image creation code. [YOCTO #5830] Signed-off-by: Laurentiu Palcu Signed-off-by: Saul Wold --- meta/classes/bootimg.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/classes/bootimg.bbclass') diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index 395085d0ab..c370bd6a10 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass @@ -232,4 +232,8 @@ python do_bootimg() { bb.build.exec_func('build_iso', d) } +IMAGE_TYPEDEP_iso = "ext3" +IMAGE_TYPEDEP_hddimg = "ext3" +IMAGE_TYPES_MASKED += "iso hddimg" + addtask bootimg before do_build -- cgit 1.2.3-korg