Changeset 9371c30 in mainline for tools/build
- Timestamp:
- 2005-12-06T20:53:03Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36e7b6c3
- Parents:
- 090e7ea1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/build
r090e7ea1 r9371c30 3 3 function syntax { 4 4 echo "Syntax:" 5 echo " build.<arch> [-compiler <compiler>] [-cpu <cpu>] [-machine <machine>]" 6 echo 7 echo "<arch> ... amd64, ia32, ia64, mips32, ppc32, sparc64" 8 echo "<compiler> ... native, *cross" 9 echo "<cpu> ... for ia32: athlon-xp, athlon-mp, pentium3, *pentium4, prescott" 10 echo "<machine> ... for mips32: *msim, msim4kc, simics, lgxemul, bgxemul, indy" 5 echo " build " 11 6 echo 12 7 } 13 14 ARCH="`basename "$0" | awk -F. '{ if (NF > 1) print \$NF }'`"15 if [ -z "$ARCH" ]; then16 syntax17 exit 118 fi19 8 20 9 ARGS="" 21 10 while [ "$#" -gt 0 ]; do 22 11 case "$1" in 23 -compiler)24 if [ -z "$2" ]; then25 syntax26 exit 127 fi28 ARGS="$ARGS COMPILER=$2"29 shift30 ;;31 -cpu)32 if [ -z "$2" ]; then33 syntax34 exit 135 fi36 ARGS="$ARGS CPU=$2"37 shift38 ;;39 -machine)40 if [ -z "$2" ]; then41 syntax42 exit 143 fi44 ARGS="$ARGS MACHINE=$2"45 shift46 ;;47 12 *) 48 13 syntax … … 61 26 fi 62 27 63 tools/config.py $ARCHdefault64 make all " ARCH=$ARCH" "TAG=$TAG" $ARGS28 tools/config.py default 29 make all "TAG=$TAG" $ARGS
Note:
See TracChangeset
for help on using the changeset viewer.