[yocto] SRC_URI scope and kernel fragments in non-yocto kernel recipes

stephen.lawrence at renesas.com stephen.lawrence at renesas.com
Tue Jan 29 03:24:31 PST 2013


Bruce Ashfield <bruce.ashfield at windriver.com> wrote on 28/01/2013 
18:56:02:

> >>>> Why is the SRC_URI containing the additional patches applied when
> >>>> referenced directly in the bb file,
> >>>> but not when referenced in an include or scc file?
> >>>
> >>> Keeping the question isolated to just the patch on the SRC_URI is a
> >>> good idea to make sure we are talking about the simplest case.
> >>>
> >>> Which type of recipe isn't having the patch applied, the mainline 
one ?
> >>> The linux-yocto one, or both ?
> >>
> >> Currently I've only tried the mainline one.
> >>
> >> I would need to revert and try again tomorrow, but when the SRC_URI
> >> containing the additional patches was in an include, I recall the 
patch
> >> files were not listed in the build prep logs such as do_fetch.
> >> Not surprising in that case, but they were also not copied over into 
the
> >> git tree of the work area.
> >>
> >> So it was as if the include was parsed but the SRC_URI was ignored.
> >
> > I'll try a test here and see what happens in the mean time.
> 
> I can confirm that in my simple test, I can have a kernel recipe
> linux-<your recipe name>.bbappend in a layer that includes .inc file,
> who's only contents are:
> 
> SRC_URI += "file://0001-makefile-add-comment.patch"
> 
> And I get the patch applied to the tree. Am I understanding correctly ?
> or is that different from what you are trying to do?
> 

Thank you for taking the time Bruce. Yes, that is essentially what I was 
trying to do. Two SRC_URI += in a .inc, one listing the patches, the other 
just listing a cfg file. The only difference is that as it was a mainline 
kernel recipe I included it from a .bb, not a .bbappend. The .bb inherits 
'kernel'.

I originally had the additional patches in a subdirectory to separate them 
out, but to eliminate file paths as a cause, I moved them in with the main 
patches with no luck. I'll revert the changes and try again so I can 
provide some specific log results.

Steve


Stephen  Lawrence, Senior Engineer, Systems, Linux/SDK, Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, SL8 5FH, Bourne End, UK,  Phone:+44 1628 651-789, Fax:+44 1628 651-804, mailto:Stephen.Lawrence at renesas.com, http://www.renesas.eu

This message is intended only for the use of the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient, you are hereby notified that any dissemination of this email (including any attachments thereto) is strictly prohibited. If you have received this email in error, please notify the sender immediately by telephone or email  and permanently destroy the original without making any copy. Please note that any material and advice from this mail is provided free of charge and shall be used as an example for demonstration purposes only. 
RENESAS MAKES NO WARRANTIES THAT THE USAGE OF INFORMATION OR ADVICE FROM THIS E-MAIL WILL NOT INFRINGE ANY INTELLECTUAL PROPERTY RIGHTS (E.G. PATENTS, COPYRIGHTS). RENESAS CANNOT GUARANTEE BUG FREE OPERATION AND THE RECIPIENT WILL USE AND/OR DISTRIBUTE IT ONLY AT HIS OWN RISK. IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DAMAGE.  The communication with Renesas Electronics Europe Ltd does not amend any written agreement in place. 
 
Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK.  Registered in England & Wales under Registered No. 04586709.



More information about the yocto mailing list