| Summary: | HOB: Hob doesn't work with rm_work | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Hob | Reporter: | Dexuan Cui <dexuan.cui> |
| Component: | hob | Assignee: | Dongxiao Xu <dongxiao.xu> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | High | CC: | dexuan.cui, jessica.zhang, jiajun.xu, lianhao.lu, meta.layer.watcher, meta.watcher, poky.bs.watcher, poky.watcher, richard.purdie, sgw, shane.wang |
| Version: | 1.2 | ||
| Target Milestone: | 1.2 M4 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Dexuan Cui
2012-04-12 06:31:32 UTC
Below is the way to reproduce the bug on my Ubuntu host: 1) add INHERIT += "rm_work" into conf/local.conf 2) bitbake acl -c cleansstate; bitbake acl; ls tmp/work/i586-poky-linux/acl-2.2.51-r3/ we see in there are only the following: acl-2.2.51 package packages-split pseudo temp 3) bitbake acl -c cleansstate; 4) in hob, choose "Create your own image" , "View recipes" -- choose acl and build the package. 5) now run "ls tmp/work/i586-poky-linux/acl-2.2.51-r3/" and we see acl-2.2.51 debugsources.list deploy-ipks image license-destdir package packages-split pkgdata pseudo relative-libdir.patch shlibs sysroot-destdir temp This shows rm_work doesn't work at all in the case of hob. Dongxiao confirms that INHERIT is respected by hob as long as it is set in the "bitbake.conf configuration file chains". The reason for this bug is that task do_rm_work is added after do_build. But hob only runs do_build task when building packages, so do_rm_work never gets the chance to be executed. Hob needs to run the task defined in BB_DEFAULT_TASK to build the packages. Correct its category! (In reply to comment #4) > Ready at: > http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=dxu4/hob-bugfix-temp&id=16c6add2870b9165fe2d25641479cffb8994b2af We'll need to fix the MAGE_ROOTFS_EXTRA_SPACE variable(20G is probably enough, but we need to TEST) in meta/recipes-core/images/self-hosted-image.bb once this bug is fixed. (In reply to comment #6) > http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=276b86509ba29046828d283f15ae44ae0850d1d0 By testing building in the guest with the patch applied, I can verify the bug was fixed. |