Difference between revisions of "Distribute compilation"

From Flav's Wiki
Jump to: navigation, search
(Created page with "=Resources= https://code.google.com/p/distcc/ http://www.openframeworks.cc/setup/raspberrypi/Raspberry-Pi-DISTCC-guide.html https://midnightyell.wordpress.com/2012/10/14/a-g...")
(No difference)

Revision as of 10:32, 12 February 2015

Resources

https://code.google.com/p/distcc/

http://www.openframeworks.cc/setup/raspberrypi/Raspberry-Pi-DISTCC-guide.html

https://midnightyell.wordpress.com/2012/10/14/a-good-compromise-cross-compiling-with-distcc/


What I did

On the i386/debian

setup the cross compiler

Go in the crosscompiler location

$ cd /media/rpi_make/raspberrypi/rpi_kernel
$ git clone https://github.com/raspberrypi/tools
$ ls -l tools/arm-bcm2708/
total 16
drwxr-xr-x 7 flav flav 4096 Feb 10 14:14 arm-bcm2708hardfp-linux-gnueabi
drwxr-xr-x 7 flav flav 4096 Feb 10 14:14 arm-bcm2708-linux-gnueabi
drwxr-xr-x 7 flav flav 4096 Feb 10 14:15 gcc-linaro-arm-linux-gnueabihf-raspbian
drwxr-xr-x 7 flav flav 4096 Feb 10 14:15 gcc-linaro-arm-linux-gnueabihf-raspbian-x64

install and config distcc

# apt-get install distcc

configure /etc/default/distcc:

STARTDISTCC="true"
ALLOWEDNETS="192.168.0.0/24"
LISTENER=""
NICE="0"
JOBS=""
ZEROCONF="true"
PATH=/media/rpi_make/raspberrypi/rpi_kernel/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/arm-linux-gnueabihf/bin/:\
/media/rpi_make/raspberrypi/rpi_kernel/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/libexec/gcc/arm-linux-gnueabihf/4.8.3:\
${PATH}