summaryrefslogtreecommitdiff
path: root/util/abuild
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-04-04 18:16:11 +0000
committerStefan Reinauer <stepan@openbios.org>2009-04-04 18:16:11 +0000
commit8e304e66165bc98c9e226e38623741212dbd4aa8 (patch)
tree06198b892764dad59627c6803be55f0cd9351a63 /util/abuild
parent6e244da7a5dbfca8ff7002a052dec931b380c86b (diff)
downloadcoreboot-8e304e66165bc98c9e226e38623741212dbd4aa8.tar.xz
fix cross compilation in abuild for certain scenarios
(coreboot.org build system internal) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4066 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/abuild')
-rwxr-xr-xutil/abuild/abuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index cfc440b216..0a0874fd6d 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -5,7 +5,7 @@
# This script builds coreboot images for all available targets.
#
# (C) 2004 by Stefan Reinauer <stepan@openbios.org>
-# (C) 2006-2008 by coresystems GmbH <info@coresystems.de>
+# (C) 2006-2009 by coresystems GmbH <info@coresystems.de>
#
# This file is subject to the terms and conditions of the GNU General
# Public License. See the file COPYING in the main directory of this
@@ -14,8 +14,8 @@
#set -x # Turn echo on....
-ABUILD_DATE="May 27th, 2008"
-ABUILD_VERSION="0.7"
+ABUILD_DATE="April 3rd, 2009"
+ABUILD_VERSION="0.8"
# Where shall we place all the build trees?
TARGET=$( pwd )/coreboot-builds
@@ -110,8 +110,9 @@ function architecture
{
VENDOR=$1
MAINBOARD=$2
- cat $LBROOT/src/mainboard/$VENDOR/$MAINBOARD/Config.lb | \
- grep ^arch | cut -f 2 -d\
+ ARCH=`cat $LBROOT/src/mainboard/$VENDOR/$MAINBOARD/Config.lb | \
+ grep ^arch | cut -f 2 -d\ `
+ echo $ARCH | sed s/ppc/powerpc/
}
function create_config
@@ -335,12 +336,11 @@ function build_target
found_crosscompiler=false
if which $TARCH-elf-gcc 2>/dev/null >/dev/null; then
# i386-elf target needs --divide, for i386-linux, that's the default
- CC="$TARCH-elf-gcc"
if [ "$TARCH" = "i386" ]; then
CC="$CC -Wa,--divide"
fi
- echo using $CC
CROSS_COMPILE="$TARCH-elf-"
+ echo using $CROSS_COMPILE$CC
found_crosscompiler=true
fi