From df0eda74df01134baf00dfbebe5ed7425aa6df57 Mon Sep 17 00:00:00 2001 From: Marc Andre Tanner Date: Thu, 12 Nov 2009 00:29:39 +0100 Subject: [PATCH] Use fwl default toolchain prefix 'armv4tl-' Signed-off-by: Marc Andre Tanner --- README | 24 +++++------------------- sources/include.sh | 2 +- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/README b/README index 0b949a5..3b7697f 100644 --- a/README +++ b/README @@ -39,25 +39,7 @@ Pre-Requirements ./cross-compiler.sh armv4tl - 3. Go into the build/cross-compiler-armv4tl/bin directory and - create symlinks to every binary with the following prefix: - - armv4tl-unknown-linux-gnueabi- - - The following script does this when run from within the - build/cross-compiler-armv4tl/bin directory: - - #!/bin/sh - - OLD_PREFIX=armv4tl - NEW_PREFIX=armv4tl-unknown-linux-gnueabi - - for OLD_APP in $OLD_PREFIX-*; do - APP=$(echo $OLD_APP | sed 's/.*-\(.*\)$/\1/') - ln -sf "$OLD_APP" "$NEW_PREFIX-$APP" - done - - 4. Copy the build/cross-compiler-armv4tl directory to a + 3. Copy the build/cross-compiler-armv4tl directory to a place of your choice. Now that you have a cross toolchain add it's bin directory to @@ -85,6 +67,10 @@ Building the boot system if this is not the case then add it. cd cross-compiler-armv4tl/bin && export PATH=`pwd`:$PATH + + By default the scripts assume 'armv4tl-' as toolchain prefix if your + toolchain uses something differenct then set the $CROSS environment + variable accordingly. Building -------- diff --git a/sources/include.sh b/sources/include.sh index 0013de8..b3e2ea0 100755 --- a/sources/include.sh +++ b/sources/include.sh @@ -49,7 +49,7 @@ then --host=armv4tl-unknown-linux-gnueabi" # cross compiler prefix used by kernel, uclibc and busybox # build system - CROSS="armv4tl-unknown-linux-gnueabi-" + [ -z "$CROSS" ] && CROSS="armv4tl-" fi STRIP="${CROSS}strip" -- 2.11.4.GIT