[yocto] How to patch a recipe .inc file

Greg Wilson-Lindberg GWilson at sakuraus.com
Fri Aug 16 09:15:54 PDT 2019


Hi Jonas,
I have added extra kernel config through a .bbappend and a do_configure_append() function. The issue that I was asking about is that the for the initramfs changes that are suggested in the meta-raspberrypi documentation, section 3.14, they need to be inserted in the middle of one of the functions in the linux-raspberrypi.inc file, they can't be added in a prepend() or append() function. This either requires that I change the linux-raspberrypi.inc file or find some way to patch it during the build, I would prefer to patch it.

Regards,
Greg Wilson-Lindberg  
 
> -----Original Message-----
> From: Gmail [mailto:jonaskgandersson at gmail.com]
> Sent: Wednesday, August 07, 2019 10:38 PM
> To: Greg Wilson-Lindberg <GWilson at sakuraus.com>
> Cc: Yocto list discussion <yocto at yoctoproject.org>
> Subject: Re: [yocto] How to patch a recipe .inc file
> 
> Hi,
> 
> To add some kernel config I have created an extra .cfg file in:
> my_recipe/recipes-kernel/linux/linux-raspberrypi/
> and add an bb_append file:
> 
> recipes-kernel/linux/linux-raspberrypi_%25.bbappend
> __________________________________________________________
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> 
> SRC_URI += "file://your_conf.cfg"
> __________________________________________________________
> 
> BR
> Jonas
> 
> > 8 aug. 2019 kl. 01:02 skrev Greg Wilson-Lindberg <GWilson at sakuraus.com>:
> >
> > I'm working with a Yocto Sumo build provided with Qt's boot2qt system. I'm trying
> to enable using initramfs as a step in trying to enable OSTree updates.
> >
> > In the meta-raspberrypi documentation, section 3.14, it says to add some kernel
> config to the linux-raspberrypi.inc file. I would prefer to keep my changes to Yocto
> layer files in my own tree so I'm trying to figure out how to patch the existing file.
> I've got bitbake finding my patch file, but it can't find the file to patch.
> >
> > Can somebody help me to specify that the file that I'm patching is part of the
> meta-raspberrypi linux recipe?
> >
> > I'm going to be gone for a week, but I wanted to ask this now so maybe I'll have
> some information when I get back.
> >
> > Regards,
> > Greg Wilson-Lindberg
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto at yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list