| Summary: | Example recipe created with bitbake-layers create-layer doesn't print to stdout | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | alan.martinovic | ||||
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> | ||||
| Status: | RESOLVED NOTABUG | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Undecided | CC: | poky.bs.watcher, poky.watcher | ||||
| Version: | 3.0.2 | ||||||
| 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) | |||||
| Attachments: |
|
||||||
|
Description
alan.martinovic
2020-01-24 11:20:50 UTC
I've tested the exact same steps just with warrior. The results are the same. Also tried running the build task explicitly: bitbake example -c build but it didn't make a difference. Taking a look at tmp/work/i586-poky-linux/example/0.1-r0/temp/ there are no do_build related files. ll tmp/work/i586-poky-linux/example/0.1-r0/temp/*do_build* returns nothing. The problem seems to be tied only to do_build.
Using do_install with the exact same code prints correctly.
```
SUMMARY = "bitbake-layers recipe"
DESCRIPTION = "Recipe created by bitbake-layers"
LICENSE = "MIT"
python do_install() {
bb.plain("***********************************************");
bb.plain("* *");
bb.plain("* Example recipe created by bitbake-layers *");
bb.plain("* *");
bb.plain("***********************************************");
}
do_install[nostamp]="1"
```
I think this is because do_build is a "noexec" task and hence doesn't execute any task contents. I therefore believe its working as intended. You could make the bitbake example do the same with: do_build[noexec] = "1" |