All of lore.kernel.org
 help / color / mirror / Atom feed
* How to patch a driver in Linux source tree
@ 2018-04-13 18:41 Greg Wilson-Lindberg
  2018-04-13 19:17 ` Jeremy Thien
  2018-04-14  0:52 ` Khem Raj
  0 siblings, 2 replies; 5+ messages in thread
From: Greg Wilson-Lindberg @ 2018-04-13 18:41 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

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?


Thanks for the help and enlightenment,

Greg Wilson-Lindberg

[-- Attachment #2: Type: text/html, Size: 862 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to patch a driver in Linux source tree
  2018-04-13 18:41 How to patch a driver in Linux source tree Greg Wilson-Lindberg
@ 2018-04-13 19:17 ` Jeremy Thien
  2018-04-13 21:33   ` Greg Wilson-Lindberg
  2018-04-14  0:52 ` Khem Raj
  1 sibling, 1 reply; 5+ messages in thread
From: Jeremy Thien @ 2018-04-13 19:17 UTC (permalink / raw)
  To: Greg Wilson-Lindberg; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1183 bytes --]

SRC_URI = "<your kernel git path> file://your-patch-path"

Then place the patch in files subdirectory.

So your tree should look something like:

<your layer>/recipes-kernel/linux/
  linux-raspberrypi_4.4.bbappend
  files/
    <your patch>

Instead of "files", it might be named "linux-raspberrypi".

Hope this helps,
Jeremy

On Fri, Apr 13, 2018 at 2:41 PM Greg Wilson-Lindberg <GWilson@sakuraus.com>
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?
>
>
> Thanks for the help and enlightenment,
>
> Greg Wilson-Lindberg
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-- 
Jeremy Thien
Director of Engineering | Adtec Digital
jeremy.thien@adtecdigital.net | mobile: +1 (904) 910-1749

[-- Attachment #2: Type: text/html, Size: 2172 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to patch a driver in Linux source tree
  2018-04-13 19:17 ` Jeremy Thien
@ 2018-04-13 21:33   ` Greg Wilson-Lindberg
  0 siblings, 0 replies; 5+ messages in thread
From: Greg Wilson-Lindberg @ 2018-04-13 21:33 UTC (permalink / raw)
  To: Jeremy Thien; +Cc: yocto


[-- Attachment #1.1: Type: text/plain, Size: 2958 bytes --]

Hi Jeremy,

I understand most of what you've got here, thanks, but I'm confused on the SRC_URI="<your kernel git path>…". Where should I look for the kernel git directory? I'm running Yocto with a mirror directory and that contains git directories for all of the major pieces, but I don't see one for the kernel. The kernel source is in tmp/work-shared/raspberrypi3/lernel-source, but that is not a git directory.

Any pointers would be appreciated.



Greg Wilson-Lindberg

Principal Firmware Engineer | Sakura Finetek USA, Inc.



1750 W 214th Street | Torrance, CA 90501 | U.S.A.

T: +1 310 783 5075

F: +1 310 618 6902 | E: gwilson@sakuraus.com<mailto:gwilson@sakuraus.com>

www.sakuraus.com<http://www.sakuraus.com>



[cid:image002.png@01D35D7D.179A7510]

[cid:image003.png@01D35D7D.179A7510]


________________________________

Confidentiality Notice: This e-mail transmission may contain confidential or legally privileged information that is intended only for the individual or entity named in the e-mail address. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this e-mail is strictly prohibited. If you have received this e-mail transmission in error, please reply to the sender, so that Sakura Finetek USA, Inc. can arrange for proper delivery, and then please delete the message from your inbox. Thank you.



From: Jeremy Thien [mailto:jeremyt@adtecinc.com]
Sent: Friday, April 13, 2018 12:18 PM
To: Greg Wilson-Lindberg <GWilson@sakuraus.com>
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] How to patch a driver in Linux source tree


SRC_URI = "<your kernel git path> file://your-patch-path<file:///\\your-patch-path>"

Then place the patch in files subdirectory.

So your tree should look something like:

<your layer>/recipes-kernel/linux/
  linux-raspberrypi_4.4.bbappend
  files/
    <your patch>

Instead of "files", it might be named "linux-raspberrypi".

Hope this helps,
Jeremy

On Fri, Apr 13, 2018 at 2:41 PM Greg Wilson-Lindberg <GWilson@sakuraus.com<mailto:GWilson@sakuraus.com>> 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?



Thanks for the help and enlightenment,

Greg Wilson-Lindberg
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto
--
Jeremy Thien
Director of Engineering | Adtec Digital
jeremy.thien@adtecdigital.net<mailto:jeremy.thien@adtecdigital.net> | mobile: +1 (904) 910-1749

[-- Attachment #1.2: Type: text/html, Size: 15828 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 949 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 1916 bytes --]

[-- Attachment #4: image003.png --]
[-- Type: image/png, Size: 3012 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to patch a driver in Linux source tree
  2018-04-13 18:41 How to patch a driver in Linux source tree Greg Wilson-Lindberg
  2018-04-13 19:17 ` Jeremy Thien
@ 2018-04-14  0:52 ` Khem Raj
  2018-04-16 20:32   ` Greg Wilson-Lindberg
  1 sibling, 1 reply; 5+ messages in thread
From: Khem Raj @ 2018-04-14  0:52 UTC (permalink / raw)
  To: Greg Wilson-Lindberg, yocto



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
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to patch a driver in Linux source tree
  2018-04-14  0:52 ` Khem Raj
@ 2018-04-16 20:32   ` Greg Wilson-Lindberg
  0 siblings, 0 replies; 5+ messages in thread
From: Greg Wilson-Lindberg @ 2018-04-16 20:32 UTC (permalink / raw)
  To: Khem Raj, yocto

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@gmail.com]
> Sent: Friday, April 13, 2018 05:53 PM
> To: Greg Wilson-Lindberg <GWilson@sakuraus.com>; yocto@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
> >
> >


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-04-16 20:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-13 18:41 How to patch a driver in Linux source tree Greg Wilson-Lindberg
2018-04-13 19:17 ` Jeremy Thien
2018-04-13 21:33   ` Greg Wilson-Lindberg
2018-04-14  0:52 ` Khem Raj
2018-04-16 20:32   ` Greg Wilson-Lindberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.