image.bbclass: Handle image base type dependency properly

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>
(From OE-Core rev: 191c7be3a6cc52911f244323072433f6a1172bf1)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Otavio Salvador 2016-01-14 19:17:08 -02:00 committed by Richard Purdie
parent ad32f65a28
commit e914e2ac15
1 changed files with 3 additions and 0 deletions

View 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)