BR2_JLEVEL=2 在 Buildroot 中起什么作用?

发布于 2024-12-14 11:36:57 字数 98 浏览 3 评论 0原文

我已将 BR2_JLEVEL 设置为 2 ;不确定这个选项在 buildroot 中如何工作?有人可以详细说明它在 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

二手情话 2024-12-21 11:36:57

BR2_JLEVEL 相当于使用选项 -j 运行“Make”。

“make”的手册页指出

-j [作业], --jobs[=作业]

指定同时运行的作业(命令)数量。
如果有多个 -j 选项,则最后一个是
有效的。如果给出 -j 选项而不带参数,make 将
不限制可以同时运行的作业数量。

因此,使用 BR2_JLEVEL=2 运行将同时启动两个编译进程,从而加快编译时间,特别是当您有多个 CPU 时。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文