Bitbake speed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bitbake speed

2,943 Views
dugurlu
Contributor I

Hello everyone,

I'm working on a project which has many Bitbake recipes and takes a lot of time.(up to 24 hours)  I am a newbie on embedded Linux.

How can ı solve this problem? 

Thanks.

Labels (1)
0 Kudos
1 Reply

2,504 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Dogan Ugurlu,

Bitbake can take a while especially with recipes with a large number of tasks. It also fetches the source code on-demand, so there are several variables that will affect how much bitbake takes to finish all tasks in the queue:

- Your internet connection is one variable, as some repositories are very large.

- If you are using a Virtual Machine the process will be much slower.

- Having multiple cores allow to run several tasks in parallel. You may change this number, but it’s recommended to keep it at 2X the number of cores at a maximum. To do this add these lines on the conf/local.conf file under the build directory (instead of n, place the number of parallel threads you desire):

PARALLEL_MAKE ?= "-j n"

BB_NUMBER_THREADS ?= "n"

I hope this helps!

Regards,

0 Kudos