]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: Handle image base type dependency properly
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 14 Jan 2016 21:17:08 +0000 (19:17 -0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jan 2016 11:56:30 +0000 (11:56 +0000)
When a base image type has an implicit dependency (from IMAGE_TYPEDEP)
this has to be taken into account. This is a regression introduced by
OE-Core:c2dab18 (image: Create separate tasks for rootfs construction).

The issue has been found when building meta-fsl-arm based images which
does not include the rootfs image type explicitly in IMAGE_FSTYPES but
instead is added, using IMAGE_TYPEDEP, for the 'sdcard.gz' image.

Reported-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass

index 8a09db19292a36520544eff13608403bade8fbf5..96666d529fed758b6355c419c31a7bf020420aea 100644 (file)
@@ -337,6 +337,9 @@ python () {
             _add_type(dep)
             basedep = _image_base_type(dep)
             typedeps[baset].add(basedep)
+
+        if baset != t:
+            _add_type(baset)
         
     for t in alltypes[:]:
         _add_type(t)