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

Michael Habibi mikehabibi at gmail.com
Thu Feb 1 07:03:02 PST 2018


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 specific? I have only seen -native, -cross, and some other ones that
don't seem to apply to this case.

On Thu, Feb 1, 2018 at 8:44 AM, Burton, Ross <ross.burton at intel.com> wrote:

> On 1 February 2018 at 14:29, Michael Habibi <mikehabibi at gmail.com> 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 Yocto build process, and the eventual target version. How do I modify
>> the recipe such that it only acts upon the target version?
>>
>> Would it be something like recipe-cross.bbappend instead of
>> recipe.bbappend? Or something similar?
>>
>
>
> SRC_URI_append_class-target = " file://..."
>
> Ross
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180201/06dc5036/attachment.html>


More information about the yocto mailing list