move architecture override before cross compiler detection, or the Sandpoint

skeleton will have get a cross compiler before it gets the architecture set 
to SKIP. Pretty much build system internal, so self-acked.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4091 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2009-04-10 23:02:48 +00:00 committed by Stefan Reinauer
parent 708ccac6ee
commit 1da9a79a06
1 changed files with 9 additions and 6 deletions

View File

@ -14,8 +14,8 @@
#set -x # Turn echo on.... #set -x # Turn echo on....
ABUILD_DATE="April 3rd, 2009" ABUILD_DATE="April 10th, 2009"
ABUILD_VERSION="0.8" ABUILD_VERSION="0.8.1"
# Where shall we place all the build trees? # Where shall we place all the build trees?
TARGET=$( pwd )/coreboot-builds TARGET=$( pwd )/coreboot-builds
@ -329,6 +329,12 @@ function build_target
MAINBOARD=$2 MAINBOARD=$2
TARCH=$( architecture $VENDOR $MAINBOARD ) TARCH=$( architecture $VENDOR $MAINBOARD )
# Allow architecture override in an abuild.info file.
# This is used for the Motorola Sandpoint, which is not a real target
# but a skeleton target for the Sandpoint X3.
[ -r "$LBROOT/src/mainboard/${VENDOR}/${MAINBOARD}/abuild.info" ] && \
source $LBROOT/src/mainboard/${VENDOR}/${MAINBOARD}/abuild.info
# default setting # default setting
CC="${CROSS_COMPILE}gcc" CC="${CROSS_COMPILE}gcc"
@ -356,9 +362,6 @@ function build_target
xml " <architecture>$TARCH</architecture>" xml " <architecture>$TARCH</architecture>"
xml "" xml ""
[ -r "$LBROOT/src/mainboard/${VENDOR}/${MAINBOARD}/abuild.info" ] && \
source $LBROOT/src/mainboard/${VENDOR}/${MAINBOARD}/abuild.info
if [ "$ARCH" = "$TARCH" -o $found_crosscompiler = true ]; then if [ "$ARCH" = "$TARCH" -o $found_crosscompiler = true ]; then
printf " ($TARCH: ok)\n" printf " ($TARCH: ok)\n"
else else