Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the meaning of '__anonymous' function in a yocto/bitbake recipe?

In a yocto project, the core-image.bbclass contains the following code.

python __anonymous() {
    ................
    ................
}

What is the meaning of the __anonymous function here?

like image 267
Pala Avatar asked Dec 20 '22 02:12

Pala


1 Answers

In a BitBake recipe, anonymous python code is executed after the recipe is parsed. You can almost think of it as "post-processing" for a recipe. That's all there is to it. Bitbake executes the code within the anonymous block after the recipe is parsed.

like image 58
challinan Avatar answered Feb 13 '23 20:02

challinan