Patchwork [1/1] package.bbclass: Fix recrdeptask of image type recipes

login
register
mail settings
Submitter Dongxiao Xu
Date Aug. 25, 2011, 3:51 a.m.
Message ID <87d07645927c7b7bdbbba3260e3a821c1036a9ad.1314244112.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/10515/
State New, archived
Headers show

Comments

Dongxiao Xu - Aug. 25, 2011, 3:51 a.m.
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]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/classes/package.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Richard Purdie - Aug. 30, 2011, 9:20 p.m.
On Thu, 2011-08-25 at 11:51 +0800, Dongxiao Xu wrote:
> 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]
> 
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> ---
>  meta/classes/package.bbclass |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard

Patch

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 96675de..15c4142 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -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", "")
 }