Home > debian, kernel, omap > Distributed ARM cross compilation ( Fast ARM Compilation )

Distributed ARM cross compilation ( Fast ARM Compilation )

+

You configured the ARM cross compiler and now you can compile your ARM kernel more fast using distcc.

Follow the instructions below.

Requirement:

* Configure DISTCC

* Configure ARM toolchain

After requirements:
”’You need to execute the instructions in all machines available for DISTCC_HOSTS.”’

=== ALL DISTCC_HOSTS MACHINES ===

* Directing ARM compilation to distcc

for a in /opt/cs-gcc/bin/arm-none-* ; do sudo ln -s /usr/bin/distcc `echo $a | cut -f5 -d/  | sed -e 's/none-eabi/linux/'` ; done

* Edit /etc/init.d/distcc

Change from: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"      to: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/opt/cs-gcc/bin/"

* Restart distcc service

  /etc/init.d/distcc restart

* After all machines configured then you can your kernel

make ARCH=arm omap_h3_1710_defconfigmake ARCH=arm cleanmake ARCH=arm -j12

That’s all!!

Categories: debian, kernel, omap Tags:
  1. No comments yet.
  1. No trackbacks yet.