Re: [poky] Patching a patch from a vendor

Quentin Schulz <[email protected]> Mon, 12 May 2025 20:38:13 +0200
Newsgroups org.yoctoproject.lists.poky
Message-ID <[email protected]>
Hi John,

On 5/12/25 8:10 PM, John via lists.yoctoproject.org wrote:
> So this is an NXP product and their 1st response to any of my queries is to ask for the processor for which my response is T1024RDB 64bit. They respond that they don't support Yocto for that product beyond dunfell. Since my customer's requirement is to get them off of dunfell and onto scarthgap, I have to work around NXP. People keep telling me to talk to them and NXP has made it quite clear that they will not entertain any questions about that product as far as Yocto Scarthgap is concerned.
> 
> I am more than willing to share my fix (if I can figure one out) here but needless to say, I don't support NXP beyond my personally tagged version of "I'm-Too-Old-to-be-Wasting-My-Time".
> 
> I'm unable to come up with a bbappend patch to replace an erroneous 'require' statement in an 'inc' file. I need to remove the "require" statement from 3 recipes (again, from qoriq which is NXP) since the required file no longer exists.
> 

Depending on what you need (which is often not THAT much), you can 
simply "steal" what you need from your vendor BSP layer, and include it 
in your own layer and just not use the vendor BSP layer.

You can also do what Alex suggested of simply forking their layer and 
fixing stuff as you go.

For the "require" part there are multiple nasty ways to do it, I would 
simply fix the recipe to not require it (and since you cannot undo a 
require..., you need to replace the whole recipe).

Cheers,
Quentin