Changeset 6bc4dbd in mainline for build.ia32


Ignore:
Timestamp:
2005-11-08T00:00:15Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5b65205
Parents:
849ba5cb
Message:

new build system upgrade
finished work for IA-32, IA-64, PPC-32, SPARC-64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.ia32

    r849ba5cb r6bc4dbd  
    11#! /bin/sh
    22
    3 COMPILER=""
     3function syntax {
     4        echo "Syntax:"
     5        echo " build.<arch> [-compiler <compiler>] [-cpu <cpu>]"
     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"
     10        echo
     11}
    412
     13ARCH="`basename "$0" | awk -F. '{ if (NF > 1) print \$NF }'`"
     14if [ -z "$ARCH" ]; then
     15        syntax
     16        exit 1
     17fi
     18
     19ARGS=""
    520while [ "$#" -gt 0 ]; do
    621        case "$1" in
    7                 native)
    8                         COMPILER="$COMPILER NATIVE_COMPILER=yes"
     22                -compiler)
     23                        ARGS="$ARGS COMPILER=$2"
     24                        shift
    925                        ;;
    10                 strong)
    11                         COMPILER="$COMPILER STRONG_ORDERING=yes"
     26                -cpu)
     27                        ARGS="$ARGS CPU=$2"
     28                        shift
    1229                        ;;
    1330                *)
    14                         echo "Supported arguments: native strong"
     31                        syntax
    1532                        exit 1
    1633                        ;;
     
    1936done
    2037
    21 make all ARCH=ia32 $COMPILER
    22 ( cd uspace/libc && make all ARCH=ia32 $COMPILER )
    23 ( cd uspace && make all ARCH=ia32 $COMPILER )
     38make all "ARCH=$ARCH" $ARGS
Note: See TracChangeset for help on using the changeset viewer.