Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is difference between .bb ( recipe ) and .bbclass ( class ) in yocto

I just started understanding Yocto. I have not find much information about classes ( .bbclass ) files . I know .bb file is a recipe which contains the instruction to build a package. When do we have to write a recipe and when a class or what is the difference between both

like image 847
md.jamal Avatar asked Dec 23 '17 14:12

md.jamal


1 Answers

Yocto classes (.bbclass) are used to factorise recipe's code, to handle some general problems. For instance, handling CMake in recipes is made in cmake.bbclass so that when you add inherit cmake, your recipe will manage CMake specifics.

You can look at class list in manual too.

like image 95
Nayfe Avatar answered Oct 22 '22 07:10

Nayfe