1

In Yocto build, I need to patch a Python function do_special_task() in a recipe under meta/recipes-devtools. Naturally, I'm not touching the original .bb file, but creating own .bbappend in our own layer.

To do this, I copy all the function into .bbappend. The diff is just one line, but I have to copy do_special_task() in its whole and then change the only line.

Is there a way to better factor the change out? Something like "patch of the bb file"?

Konstantin Shemyak
  • 2,369
  • 5
  • 21
  • 41

1 Answers1

3

No, you need to copy/paste the function into a bbappend.

Or, work with whoever wrote the recipe so do_special_task handles both of your needs, possible with a variable to control what it does.

Ross Burton
  • 3,516
  • 13
  • 12