How to patch a recipe .inc file
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
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
Quoted 18 lines
8 aug. 2019 kl. 01:02 skrev Greg Wilson-Lindberg <[email protected]>:
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-LindbergSignature · 4 lines
_______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
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
Quoted 47 lines
-----Original Message-----
From: Gmail [mailto:[email protected]]
Sent: Wednesday, August 07, 2019 10:38 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] How to patch a recipe .inc fileHi,
To add some kernel config I have created an extra .cfg file in:
my_recipe/recipes-kernel/linux/linux-raspberrypi/
and add anbb_appendfile:recipes-kernel/linux/linux-raspberrypi_%25.bbappend
__________________________________________________________FILESEXTRAPATHS_prepend:= "${THISDIR}/${PN}:"
SRC_URI+= "file://your_conf.cfg"
__________________________________________________________BR
JonasQuoted 3 lines
8 aug. 2019 kl. 01:02 skrev Greg Wilson-Lindberg <[email protected]>:
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.
Quoted 2 lines
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.
Quoted 2 lines
Can somebody help me to specify that the file that I'm patching is part of the
meta-raspberrypi linux recipe?
Quoted 2 lines
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.
Quoted 9 lines
Regards,
Greg Wilson-Lindberg--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto