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?
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!
Retrieving data ...