package.bbclass: Fix recrdeptask of image type recipes

For image type of recipes, we need to define do_package_write as its
do_build recrdeptask, which ensures that all packaging types listed in
PACKAGE_CLASSES will be built out.

[YOCTO 1370]

(From OE-Core rev: b68cd33673fdc17711d7b9fde9cc23b0d8498c17)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Dongxiao Xu
2011-08-25 11:40:11 +08:00
committed by Richard Purdie
parent 84ef84dbb8
commit de36669053

View File

@@ -184,7 +184,7 @@ python () {
# shlibs requires any DEPENDS to have already packaged for the *.list files
deps.append("do_package")
bb.data.setVarFlag('do_package', 'deptask', " ".join(deps), d)
else:
elif not bb.data.inherits_class('image', d):
d.setVar("PACKAGERDEPTASK", "")
}