Changeset 6bc4dbd in mainline for build.ia32
- Timestamp:
- 2005-11-08T00:00:15Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5b65205
- Parents:
- 849ba5cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
build.ia32
r849ba5cb r6bc4dbd 1 1 #! /bin/sh 2 2 3 COMPILER="" 3 function 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 } 4 12 13 ARCH="`basename "$0" | awk -F. '{ if (NF > 1) print \$NF }'`" 14 if [ -z "$ARCH" ]; then 15 syntax 16 exit 1 17 fi 18 19 ARGS="" 5 20 while [ "$#" -gt 0 ]; do 6 21 case "$1" in 7 native) 8 COMPILER="$COMPILER NATIVE_COMPILER=yes" 22 -compiler) 23 ARGS="$ARGS COMPILER=$2" 24 shift 9 25 ;; 10 strong) 11 COMPILER="$COMPILER STRONG_ORDERING=yes" 26 -cpu) 27 ARGS="$ARGS CPU=$2" 28 shift 12 29 ;; 13 30 *) 14 echo "Supported arguments: native strong"31 syntax 15 32 exit 1 16 33 ;; … … 19 36 done 20 37 21 make all ARCH=ia32 $COMPILER 22 ( cd uspace/libc && make all ARCH=ia32 $COMPILER ) 23 ( cd uspace && make all ARCH=ia32 $COMPILER ) 38 make all "ARCH=$ARCH" $ARGS
Note:
See TracChangeset
for help on using the changeset viewer.