Add aboriginal linux build recipe
authorMarc Andre Tanner <mat@brain-dump.org>
Mon, 4 Oct 2010 16:32:49 +0000 (4 18:32 +0200)
committerMarc Andre Tanner <mat@brain-dump.org>
Mon, 4 Oct 2010 16:32:49 +0000 (4 18:32 +0200)
This builds a portable cross compiler which can be used to build
the whole kernel + initramfs.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
sources/sections/aboriginal.sh [new file with mode: 0644]

diff --git a/sources/sections/aboriginal.sh b/sources/sections/aboriginal.sh
new file mode 100644 (file)
index 0000000..1585e99
--- /dev/null
@@ -0,0 +1,25 @@
+setupfor aboriginal
+
+./download.sh || dienow 
+
+# first build a simple cross compiler for the host to build the 
+# executables
+
+./simple-cross-compiler.sh "`uname -m`" || dienow 
+
+# then build a simple cross compiler for the target which is 
+# needed to build the libraries
+
+./simple-cross-compiler.sh "$ARCH" || dienow 
+
+# and finally build a more advanced cross compiler which for
+# portability is statically linked agains the host uClibc
+
+CROSS_HOST_ARCH=`uname -m` ./cross-compiler.sh "$ARCH" || dienow
+
+cp build/cross-compiler-$ARCH.tar.bz2 "$TOP" &&
+tar -C "$TOP" -xjf build/cross-compiler-$ARCH.tar.bz2 || dienow
+
+export PATH="$PATH:$TOP/cross-compiler-$ARCH/bin"
+
+cleanup aboriginal