[meta-xilinx] bitbake new version of xilinx_emacps.c

Harold Lapprich hlapprich at pixel-velocity.com
Thu Jul 2 06:18:24 PDT 2015


Nathan,

Thanks for the quick reply. Was able to identify 'file append' or 'file patch' as the approach to take yesterday. Have read a number of documents on the topic:

	1. Yocto Project Development Manual,
	2. Embedded Linux Development with Yocto Project (Otavio Salvador, Daiane Angolini),
	3. and Yocto Project Linux Kernel Development Manual, 2.2.2 Adding Patches.


Very experienced in Unix/Linux for embedded systems but just started using Yocto about 5 months ago (seems to be the way to go, very nice architecture for embedded Linux).

Identifed the version of 'xilinx_emacps.c' that I need to update to URL: https://github.com/Xilinx/linux-xlnx/tree/master/drivers/net/ethernet/xilinx
and have done a comparison between the current version and the update version via 'windiff' but have no experience with creating a patch file. There must be a Yocto tool for generating the patch file or a cookbook procedure since it is key to the Yocto architecture, do you know where I might find this tool?

Thanks,
Harold


-----Original Message-----
From: Nathan Rossi [mailto:nathan at nathanrossi.com] 
Sent: Thursday, July 02, 2015 12:59 AM
To: Harold Lapprich
Cc: meta-xilinx at yoctoproject.org
Subject: Re: [meta-xilinx] bitbake new version of xilinx_emacps.c

On Thu, Jul 2, 2015 at 7:53 AM, Harold Lapprich <hlapprich at pixel-velocity.com> wrote:
> To Whom It May Concern,
>
>
>
> Currently working with Yocto 'daisy' xlnx-3.14 for an embedded project 
> and need to upgrade 'xilinx_emacps.c' and looking for directions or 
> insight on how best to do this, does anyone have a cookbook example 
> that I can look at (haven't been able to identify the layer for the 
> driver and since it is a devicetree attribute I am guessing meta-xlinx)?
>

The emacps driver is part of the linux-xlnx kernel. You will need to patch the kernel to change xilinx_emacps.c. The easiest way to go about doing that is to create a patch against the kernel source and then use a .bbappend to get yocto to apply the patch during the build of the linux-xlnx kernel.

There is some documentation around this topic here:
http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#applying-patches

Regards,
Nathan

>
>
> Thanks,
>
> Harold
>
>
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx
>


More information about the meta-xilinx mailing list