From 9986c11a0e6ac24071c38007c0c85c91e575dd4e Mon Sep 17 00:00:00 2001 From: Marc Andre Tanner Date: Mon, 4 Oct 2010 18:32:49 +0200 Subject: [PATCH] Add aboriginal linux build recipe This builds a portable cross compiler which can be used to build the whole kernel + initramfs. Signed-off-by: Marc Andre Tanner --- sources/sections/aboriginal.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 sources/sections/aboriginal.sh diff --git a/sources/sections/aboriginal.sh b/sources/sections/aboriginal.sh new file mode 100644 index 0000000..1585e99 --- /dev/null +++ b/sources/sections/aboriginal.sh @@ -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 -- 2.11.4.GIT