For now first step is to get Arch Linux ARM running on Cubieboard.
SSH into Arch install, update u-boot.
Download ARMv7a HardFP version from https://www.gentoo.org/downloads/#arm.
Follow instructions from https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation.
- 'source /etc/profile' after chrooting, Arch uses different $PATH
- Edit /etc/portage/make.conf:
ACCEPT_KEYWORD="arm ~arm"
CFLAGS="-O2 -pipe -mcpu=cortex-a8 -march=armv7-a -mfpu=neon -mfloat-abi=hard"
FEATURES="distcc distcc-pump"
MAKEOPTS="-j1 -l1" - Update portage
- Install and configure distcc:
'distcc-config --set-hosts "192.168.168.2,cpp,lzo"'
export PATH="/usr/lib/distcc/bin:${PATH}"
// to make it permanent:
echo 'PATH=/usr/lib/distcc/bin' > /etc/env.d/02distccpaths
USE=crossdev OR follow wiki.gentoo.org -> Distcc cross-compiling
Script to automate stuff will come later...