Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does BR2_JLEVEL=2 do in Buildroot?

Tags:

buildroot

I have set the BR2_JLEVEL to 2 ; Not sure how this option works in buildroot ? can somebody give details on how it works in buildroot as I am not seeing improvements in my build timing.

like image 995
lxusr Avatar asked Nov 09 '11 12:11

lxusr


People also ask

How does Buildroot work?

Buildroot is a tool that simplifies and automates the process of building a complete Linux system for an embedded system, using cross-compilation. In order to achieve this, Buildroot is able to generate a cross-compilation toolchain, a root filesystem, a Linux kernel image and a bootloader for your target.

What is Buildroot toolchain?

Buildroot is a set of Makefiles and patches that simplifies and automates the process of building a complete and bootable Linux environment for an embedded system, while using cross-compilation to allow building for multiple target platforms on a single Linux-based development system.


1 Answers

BR2_JLEVEL is equivalent to running 'Make' with the option -j.

The man-page for 'make' states

-j [jobs], --jobs[=jobs]

Specifies the number of jobs (commands) to run simultaneously. If there is more than one -j option, the last one is effective. If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously.

So running with BR2_JLEVEL=2 will start two compile processes at the same time, and thus speedup compile time, especially if you have more than one CPU.

like image 162
lyager Avatar answered Oct 08 '22 23:10

lyager