| Summary: |
execute empty tasks? |
| Product: |
[Build System, Metadata & Runtime] BitBake
|
Reporter: |
Patrick Ohly <patrick.ohly> |
| Component: |
bitbake | Assignee: |
Richard Purdie <richard.purdie> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
Undecided
|
CC: |
joshuagloe, poky.bs.watcher, poky.watcher
|
| Version: |
unspecified | |
|
| Target Milestone: |
--- | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
Tasks can have side effects besides executing their content. For example, recently do_rootfs was changed so that it creates ${IMGDEPLOYDIR}, the directory which all following image-related tasks write into: do_rootfs[cleandirs] += "${S} ${IMGDEPLOYDIR}" meta-swupd has a special image creation mode where do_rootfs is set to empty with e.data.setVar("do_rootfs", "") in a virtual recipe and the final rootfs gets created in do_image. Setting do_rootfs to empty had the effect that it was skipped *completely*, including the creation of ${IMGDEPLOYDIR}, which broke creating of such images. This might be intentional, but at first glance it looks like a somewhat too eager optimization: IMHO an empty task with side effects is valid and those side effects should be applied. There's a patch for meta-swupd which works around that (by setting do_rootfs to "pass" instead of ""), so fixing this is not urgent. Closing as "works-as-intended" would also be okay.