| Summary: | BBCLASSEXTEND="cross" overrides do_install() | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | gus |
| Component: | core | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | meta.mr.watcher, meta.watcher, richard.purdie |
| Version: | unspecified | ||
| Target Milestone: | 4.99 | ||
| Hardware: | x86 | ||
| OS: | x86_64 | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
gus
2016-03-16 04:18:04 UTC
Firstly, the cross class is very heavily gcc/binutils specific. In general its probably not usable elsewhere. Secondly, BBCLASSEXTEND with cross in it isn't well supported. I see only one usage of that in OE-Core in u-boot-fw-utils and I'm not sure its something I'd recommend in general even if happens to work there. Cleaning up that do_install is probably good but would require careful measured changes to the existing users of the class. Out of interest, where are you thinking the cross class would be useful as a BBCLASSEXTEND? I am/was trying to cross compile some "go" code to my target platform. I thought it made sense to create go_x.y.bb which uses BBCLASSEXTEND="cross native nativesdk", and then my actual golang-application recipe used DEPENDS="go-cross". I very recently discovered that recent go versions can support multiple targets with the one toolchain executable (this is contrary to the documentation), so I think I can now drop go-cross entirely which makes me happy (and renders this bug no longer an issue for me). Fwiw, I didn't encounter any further oddness from using cross.bbclass. |