与分布式bitbake的编译 [英] Distributed compile with bitbake

查看:1299
本文介绍了与分布式bitbake的编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你有任何想法如何构建分布式编译bitbake的一个OE的项目?
我鑫卡特关于distcc。

Do you got any idea how to build an oe project with distributed bitbake compile? I've thinked about distcc.

export PATH=~/distcc/bin:$PATH
make -jn CC=linux-gcc

请将调用的linux-GCC在我的道路,它指向的distcc。结果
distcc会自行安排的任务所有已知的主机。结果
-jn将创造化妆的N6实例。结果
它工作正常。结果
但现在我想用用的distcc bitbake的。结果
我知道如何使用bitbake的-jN。结果
只需使用出口PARALLEL_MAKE = -jn

make will call linux-gcc from my path which points to distcc.
distcc will schedule the tasks to all known hosts.
-jn will create n6 instances of make.
It works fine.
But now I want to use distcc with bitbake.
I know how to use -jn with bitbake.
Just use export PARALLEL_MAKE=-jn

但如何利用出口 PATH =〜/ distcc的/ bin中:$ PATH bitbake的与搜索
的distcc / bin中必须站在 $ PATH的前面。结果
但将bitbake的放置在 $ PATH_ prePEND 在前面(放置在org.openembedded.dev/conf/bitbake.conf) $ PATH

But how to use export PATH=~/distcc/bin:$PATH with bitbake.
The distcc/bin MUST stand in front of the $PATH.
But bitbake will place the $PATH_prepend (placed in org.openembedded.dev/conf/bitbake.conf) in front of the $PATH.

或者有人有另外一个工具,用于分布式bitbake的建设更好的办法?

Or someone got another tool for better way of distributed building with bitbake?

推荐答案

尝试活动热点:的 https://github.com/icecc/icecream/blob/master/README.md

的distcc一样,冰淇淋需要从构建编译工作和远程计算机允许并行构建之间分配它。但不同的distcc,冰淇淋使用中央服务器动态调度编译工作,以最快的免费服务器。

Like distcc, Icecream takes compile jobs from a build and distributes it among remote machines allowing a parallel build. But unlike distcc, Icecream uses a central server that dynamically schedules the compile jobs to the fastest free server.

OpenEmbedded的都与Yocto项目的支持冰淇淋。请参见 https://git.yoctoproject.org/cgit。 CGI /狭小/平/元/班/ icecc.bbclass

Both OpenEmbedded and Yocto Project support Icecream. See https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/classes/icecc.bbclass

安装冰淇淋,然后添加以下到您的 site.conf 在local.conf

Install Icecream, then add the following to your site.conf or local.conf

INHERIT += "icecc"

# This value overrides PARALLEL_MAKE when ICECC is enabled
# This would enable icecc for local and cross
ICECC_PARALLEL_MAKE = "-j 24"

这篇关于与分布式bitbake的编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆