Changeset 9371c30 in mainline for tools/build


Ignore:
Timestamp:
2005-12-06T20:53:03Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36e7b6c3
Parents:
090e7ea1
Message:

Completely reworked configuration system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/build

    r090e7ea1 r9371c30  
    33function syntax {
    44        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 "
    116        echo
    127}
    13 
    14 ARCH="`basename "$0" | awk -F. '{ if (NF > 1) print \$NF }'`"
    15 if [ -z "$ARCH" ]; then
    16         syntax
    17         exit 1
    18 fi
    198
    209ARGS=""
    2110while [ "$#" -gt 0 ]; do
    2211        case "$1" in
    23                 -compiler)
    24                         if [ -z "$2" ]; then
    25                                 syntax
    26                                 exit 1
    27                         fi
    28                         ARGS="$ARGS COMPILER=$2"
    29                         shift
    30                         ;;
    31                 -cpu)
    32                         if [ -z "$2" ]; then
    33                                 syntax
    34                                 exit 1
    35                         fi
    36                         ARGS="$ARGS CPU=$2"
    37                         shift
    38                         ;;
    39                 -machine)
    40                         if [ -z "$2" ]; then
    41                                 syntax
    42                                 exit 1
    43                         fi
    44                         ARGS="$ARGS MACHINE=$2"
    45                         shift
    46                         ;;
    4712                *)
    4813                        syntax
     
    6126fi
    6227
    63 tools/config.py $ARCH default
    64 make all "ARCH=$ARCH" "TAG=$TAG" $ARGS
     28tools/config.py default
     29make all "TAG=$TAG" $ARGS
Note: See TracChangeset for help on using the changeset viewer.