Skip to contentSkip to conversation

Split kernel patches over different machines

DISCUSSION Bel Hadj Salem Talel 2 participants 3 messages Nov 11, 2020

lore
Share & tools
lore
#0 lore raw

Hi All,

I created two different machines "menzu-console" and "menzu-media"
I have main patch for device tree for both , and only one patch specific for menzu-media machine So in the linux recipe bbappend I want to set something like this:
SRC_URI += "file://main.patch" # FOR BOTH MACHINES
SRC_URI_menzu-media += "file://media.patch" # FOR menzu-media ONLY

But this didn't work, only "media.patch" is unpacked and moreover the kernel recipe workdir does not contain a content as if unpack didn't work properly. How can I do it ?

Thanks, Talel

#1 lore raw

Hi Talel,

Quoted 8 lines · Bel Hadj Salem Talel

Hi All,

I created two different machines "menzu-console" and "menzu-media"
I have main patch for device tree for both , and only one patch specific for menzu-media machine So in the linux recipe bbappend I want to set something like this:
SRC_URI += "file://main.patch" # FOR BOTH MACHINES
SRC_URI_menzu-media += "file://media.patch" # FOR menzu-media ONLY

SRC_URI_append_mezu-media = " file://media.patch"
is what you should use.

The issue with your suggestion is that it **replaces** the original variable iff the recipe is built for menzu-media. What you want is to append to the variable iff the recipe is built for menzu-media, that's what the line above does.

Quentin