Re: [poky] Patching a patch from a vendor

Quentin Schulz <[email protected]>
Newsgroups org.yoctoproject.lists.poky
Message-ID <[email protected]>
Hi John,

On 5/12/25 6:20 PM, John via lists.yoctoproject.org 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.

Cheers,
Quentin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.