Re: [poky] Patching a patch from a vendor
Alexander Kanavin <[email protected]>
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <CANNYZj9GwH4w-Zg2571wz2bdJ+hPyBxPf6w18Zy+mXypFgsEJA@mail.gmail.com> |
On Mon, 12 May 2025 at 18:36, Quentin Schulz via lists.yoctoproject.org <[email protected]> wrote: > > I'm using Yocto version: scarthgap. > > > > I have a situation in vendor's repo, that has patches that needed to be changed (one of them is as simple as adding the "Upstream-Status:" string to the top of the patch file. > > > > Is this a "thing"? I don't want to be changing the vendor's recipes and patches (it's the qoriq stuff under NXP) but I need to fix some obvious errors. > > > > Don't patch patches, replace them. > > Have your own bbappend in your own layer which replaces the patch with > what you need. > > A simple > > FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" > > in a bbappend that can be found by BitBake in your layer. > > Then add your patch that replaces NXP's patch with yours, in a directory > next to the bbappend. > > Or even better, contact NXP and give them the appropriate patches so > that you don't have to carry those in your own later. I'd suggest forking the layer, and fixing everything necessary actually. Fixing things with bbappends works in limited cases, and this looks like it's less complicated to fork. And of course contact the vendor and explain to them what had to be done and whether they can fix the layer directly. Alex