From 692f2c7aed911dc193e96b214b62366ad04c89b2 Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Fri, 5 Nov 2004 19:55:06 +0000 Subject: - First pass at getting the powerpc ports to compile The static device tree is not built properly at all yet, but at least we get through it. FIXME (What is the proper way to handle add in boards?) - Add generic div64 support and ppc div64 support - Fix abuild so it properly generates the CC line when cross compiling. - Add one more possible ppc cross compiler target git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1762 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/abuild/abuild.sh | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'util/abuild') diff --git a/util/abuild/abuild.sh b/util/abuild/abuild.sh index 516add1f18..0e00c6616e 100644 --- a/util/abuild/abuild.sh +++ b/util/abuild/abuild.sh @@ -34,7 +34,7 @@ function debug { test "$verbose" == "true" && echo $* } - + function vendors { # make this a function so we can easily select @@ -64,6 +64,7 @@ function create_config { VENDOR=$1 MAINBOARD=$2 + TARCH=$( architecture $VENDOR $MAINBOARD ) echo -n " Creating config file..." mkdir -p $TARGET ( cat << EOF @@ -76,6 +77,9 @@ option CC="CROSSCC" option CROSS_COMPILE="CROSS_PREFIX" option HOSTCC="CROSS_HOSTCC" +EOF + if [ $TARCH == i386 ] ; then + cat < /dev/null 2> /dev/null ; then found_crosscompiler=true CROSS_COMPILE=$prefix @@ -235,17 +247,17 @@ function build_target echo return 0 else - echo " ($TARCH: ok, though we're $ARCH)" + echo " ($TARCH: ok, we're $ARCH)" fi fi - + built_successfully $VENDOR $MAINBOARD && \ { echo " ( mainboard/$VENDOR/$MAINBOARD previously ok )" echo return 0 } - + build_broken $VENDOR $MAINBOARD || \ { echo " ( broken mainboard/$VENDOR/$MAINBOARD skipped )" @@ -313,7 +325,7 @@ while true ; do case "$1" in -t|--target) shift; target="$1"; shift;; -a|--all) shift; buildall=true;; - -b|--broken) shift; buildbroken=true;; + -b|--broken) shift; buildbroken=true;; -v|--verbose) shift; verbose=true;; -V|--version) shift; myversion; exit 0;; -h|--help) shift; myhelp; exit 0;; @@ -323,6 +335,7 @@ while true ; do esac done +# /path/to/freebios2/ test -z "$1" || LBROOT=$1 debug "LBROOT=$LBROOT" -- cgit v1.2.3