Discussion:
[yocto] Patching bbclass file
Richard Collins
2018-10-16 14:44:22 UTC
Permalink
I have integrated mender into our system and now everything is working. I
had to change one of the mender class files. Just a one line change in a
function. As we'll be using automated build servers soon I need this change
to be permanent.

I've created a patch file in our bsp layer of the same name as the bbclass
file I want to patch but the patch is not being applied.

I'm using sumo.

Many thanks,
RichardC
Burton, Ross
2018-10-16 14:46:25 UTC
Permalink
This is simply because you can't patch a bbclass. You'll have to copy
it into your layer with the modification, or work upstream to get a
suitable change merged.

Ross
On Tue, 16 Oct 2018 at 15:45, Richard Collins
I have integrated mender into our system and now everything is working. I had to change one of the mender class files. Just a one line change in a function. As we'll be using automated build servers soon I need this change to be permanent.
I've created a patch file in our bsp layer of the same name as the bbclass file I want to patch but the patch is not being applied.
I'm using sumo.
Many thanks,
RichardC
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
--
Marcelo Magallon
2018-10-16 15:34:47 UTC
Permalink
Post by Burton, Ross
This is simply because you can't patch a bbclass. You'll have to copy
it into your layer with the modification, or work upstream to get a
suitable change merged.
What I've done in this situation is add a new layer
(poky-patches), add the modified foo.bbclass file there and when
upgrading from one version of poky to the next, compare the old
and new foo.bbclass files in poky. If they have changed, I do a
three-way merge.

Marcelo
--

Loading...