[yocto] How to patch a driver in Linux source tree

Greg Wilson-Lindberg GWilson at sakuraus.com
Mon Apr 16 13:32:14 PDT 2018


Thanks Khem,
That gave me what I needed.


Greg Wilson-Lindberg  
Principal Firmware Engineer | Sakura Finetek USA, Inc.  
 

> -----Original Message-----
> From: Khem Raj [mailto:raj.khem at gmail.com]
> Sent: Friday, April 13, 2018 05:53 PM
> To: Greg Wilson-Lindberg <GWilson at sakuraus.com>; yocto at yoctoproject.org
> Subject: Re: [yocto] How to patch a driver in Linux source tree
> 
> 
> 
> On 4/13/18 11:41 AM, Greg Wilson-Lindberg wrote:
> > I'm working on a raspberry pi3 Yocto build from Qt's boot2qt project,
> > it's running Yocto version 2.2.3, and Linux kernel 4.4.50. I need to
> > back port some changes to a file in drivers/net/can/spi. I confused
> > about where and how I set up the patch file.
> >
> > I have a linux-raspberrypi_4.4.bbappend file. Do I put the patch file
> > in that, and If so, how do I indicate the path to the file?
> 
> yes.
> 
> SRC_URI += "file://yourpatch.patch"
> 
> also add
> 
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> 
> then create a directory called linux-raspberrypi parallel to where the bbappend is
> and put the yourpatch.patch inside that directory.
> 
> 
> >
> >
> > Thanks for the help and enlightenment,
> >
> > Greg Wilson-Lindberg
> >
> >



More information about the yocto mailing list