| Summary: | Needed a way to identify layer name in bbclass to be able to filter out packages in specific layer. | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Alexander Kanevskiy <alexander.kanevskiy> |
| Component: | bitbake | Assignee: | Paul Eggleton <bluelightning> |
| Status: | VERIFIED FIXED | QA Contact: | Costin <costin.c.constantin> |
| Severity: | enhancement | ||
| Priority: | Medium+ | CC: | alexandru.c.georgescu, bluelightning, poky.bs.watcher, poky.watcher |
| Version: | 1.9 | ||
| Target Milestone: | 1.9 M1 | ||
| Hardware: | Other | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Alexander Kanevskiy
2015-05-06 15:22:10 UTC
I've pushed a branch with a patch that adds a function to bb.utils which does this: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=paule/stuff Patch sent for review: http://patchwork.openembedded.org/patch/93813/ BTW, once it's get implemented, it would be good to also include in 1.8.x maintenance releases. Sure, I've just sent a backport to bitbake 1.26, which will feed into the fido branch in poky when merged. Now in the fido branch as well: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=fido&id=ca6ef30c7a33b3860d9b0d0da51d9b8786073170 Marking as resolved. Hello,
Checked this feature and it works.
Steps performed to test it:
1)vi meta/recipes-tests/teste/teste_1.0.0.bb
SUMARY = "test recipe"
LICENSE = "CLOSED"
python do_mytask(){
bb.note("running mytest")
result = bb.utils.get_file_layer("/media/cosscat/Touro/5poky/meta/recipes-devtools/m4/m4_1.4.17.bb",d)
bb.note(result)
}
addtask do_mytask before do_build
2) bitbake teste
3) cat log.do_mytask
DEBUG: Executing python function do_mytask
NOTE: running mytest
NOTE: core
DEBUG: Python function do_mytask finished
Marking as verified.
Costin
|