[meta-xilinx] Integration of PL device in the Device Tree (Yocto)
Jean-Francois Dagenais
jeff.dagenais at gmail.com
Wed Apr 19 12:00:19 PDT 2017
> On Apr 19, 2017, at 14:49, Giuseppe Di Guglielmo <giuseppe.diguglielmo at gmail.com> wrote:
>
> I do not know yet if I want to go to that extent. For sure, I have my own PL devices and their device drivers. I was wondering if there is a stardar way in Yocto to patch:
> build/tmp/work/zc702_zynq7-poky-linux-gnueabi/u-boot-xlnx/v2016.07-xilinx-v2016.3+gitAUTOINC+95e11f6eb4-r0/git/arch/arm/dts/zynq-zc702.dts
> (for example) with my own DTS node for a specific PL device.
>
I find patches a bit hacky to generate and maintain over time IMHO. Their a good way to quickly get away with a small change which doesn't change until it is merged upstream for example.
If you do "bitbake -c configure virtual/kernel" then go in the directory where the git clone of the kernel is (tmp/work-shared/... or where you point to (older yocto)), you can change the dts once in there, then use the in-place git to generate a patch from the changes you just made...
git add your_dts_file
git commit -m"Add my PL nodes to zynq-ac702's dts"
git format-patch HEAD^
Copy this patch over to your layer where you'll add a .bbappend for the linux-xlnx recipe (linux-xlnx_%.bbappend), add your patch file to the SRC_URI. This is pretty yocto standard way of doing things, look at other bbappends.
I find the mega-manual to be a continuously helpful reference:
http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html <http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html>
There are other patching workflows explained there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20170419/bc830485/attachment.html>
More information about the meta-xilinx
mailing list