Re: [yocto] Patching only the target version of a package?

2018-02-01 Thread Burton, Ross
bbclasses can cause a recipe to be cloned and overrides created. The overrides are class-target for the target build, class-native for the native build, class-nativesdk for the SDK build. The mechanism is normally inheriting the class directly (eg when a recipe is only useful as native) or using

Re: [yocto] Patching only the target version of a package?

2018-02-01 Thread Michael Habibi
Thanks, that seems to be pretty much precisely what I need. Where can I learn more about the class construct, e.g. class-target and native? I saw some references to it in the docs, but not an actual explanation of how that all works and is put together. Any ideas? On Thu, Feb 1, 2018 at 9:34 AM, B

Re: [yocto] Patching only the target version of a package?

2018-02-01 Thread Burton, Ross
On 1 February 2018 at 15:03, Michael Habibi wrote: > So let's say my whole bbappend file is only necessary for the target > version. Can I rename the whole thing package-target.bbappend (add the > -target suffix) and it will only append it to the recipe when building the > target? Is "target" the

Re: [yocto] Patching only the target version of a package?

2018-02-01 Thread Michael Habibi
So let's say my whole bbappend file is only necessary for the target version. Can I rename the whole thing package-target.bbappend (add the -target suffix) and it will only append it to the recipe when building the target? Is "target" the actual suffix or is it a placeholder for something more spec

Re: [yocto] Patching only the target version of a package?

2018-02-01 Thread Burton, Ross
On 1 February 2018 at 14:29, Michael Habibi wrote: > I'm sure this is really simple but I haven't quite wrapped my head around > it. > > We have a bbappend file that supplies a set of patches. It currently has > the unintended side-effect of patching both the native version used during > the Yoct

[yocto] Patching only the target version of a package?

2018-02-01 Thread Michael Habibi
I'm sure this is really simple but I haven't quite wrapped my head around it. We have a bbappend file that supplies a set of patches. It currently has the unintended side-effect of patching both the native version used during the Yocto build process, and the eventual target version. How do I modif