Skip to contentSkip to conversation

distcc for bitbake

DISCUSSION [email protected] 2 participants 2 messages Oct 13, 2006

lore
Share & tools
lore
#0 lore raw

Hello
It is my first post on this list, so please be considerately. I would like to use distcc for my bitbake.
On my local copy, with some hacks, it works fine. (until the next update)

Here is my way:

distccd was installed (apt-get install distcc) and started on Host1, Host2 and Host3
All hosts have the cross compiler mipsel-linux-gcc in the global PATH (or a symlink from /usr/local/bin/mipsel-linux-gcc to the cross compiler)

I have created a directory:
/bla/distcc/bin
mipsel-linux-c++ -> /usr/bin/distcc
mipsel-linux-cc -> /usr/bin/distcc
mipsel-linux-g++ -> /usr/bin/distcc
mipsel-linux-gcc -> /usr/bin/distcc

If I compile a Project by calling make(without bitbake) I can use export PATH=/bla/distcc/bin:$PATH
make -j6 CC=mipsel-linux-gcc

make will call mipsel-linux-gcc from my path which points to distcc. distcc will schedule the tasks to all known hosts.
-j6 will create 6 instances of make.
It works fine.

But now I want to use distcc with bitbake.
I know how to use -j6 with bitbake.
Just use "export PARALLEL_MAKE=-j6"

But how to use export PATH=/bla/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. My hack is now to include "/bla/distcc/bin" in front of $PATH_prepend. It works, but it is not nice.

So please tell me where can I put it.

Best regards
Patrick

Signature · 2 lines
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
#1 lore raw
Quoted 30 lines · On 10/13/06, [email protected] <[email protected]> wrote:

Hello
It is my first post on this list, so please be considerately. I would like to use distcc for my bitbake.
On my local copy, with some hacks, it works fine. (until the next update)

Here is my way:

distccd was installed (apt-get install distcc) and started on Host1, Host2 and Host3
All hosts have the cross compiler mipsel-linux-gcc in the global PATH (or a symlink from /usr/local/bin/mipsel-linux-gcc to the cross compiler)

I have created a directory:
/bla/distcc/bin
mipsel-linux-c++ -> /usr/bin/distcc
mipsel-linux-cc -> /usr/bin/distcc
mipsel-linux-g++ -> /usr/bin/distcc
mipsel-linux-gcc -> /usr/bin/distcc

If I compile a Project by calling make(without bitbake) I can use export PATH=/bla/distcc/bin:$PATH
make -j6 CC=mipsel-linux-gcc

make will call mipsel-linux-gcc from my path which points to distcc. distcc will schedule the tasks to all known hosts.
-j6 will create 6 instances of make.
It works fine.

But now I want to use distcc with bitbake.
I know how to use -j6 with bitbake.
Just use "export PARALLEL_MAKE=-j6"

Quoted 7 lines

But how to use export PATH=/bla/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. My hack is now to include "/bla/distcc/bin" in front of $PATH_prepend. It works, but it is not nice.

So please tell me where can I put it.

Perhaps a PATH_prepend at the beginning of your local.conf?

Signature · 1 line
Justin Patrin