/[cmucl]/src/tools/cross-build-world.sh
ViewVC logotype

Diff of /src/tools/cross-build-world.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5.2.1 by rtoy, Sun Jul 18 23:55:47 2010 UTC revision 1.9 by agoncharov, Sun Aug 1 04:15:37 2010 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3  usage() {  usage() {
4      echo "cross-build-world.sh [-crl] [-B file] target-dir cross-dir cross-compiler-script [build-binary [flags]]"      echo "cross-build-world.sh [-crl] [-B file] [-G Gnumake] target-dir cross-dir cross-compiler-script [build-binary [flags]]"
5      echo "  -c      Clean target and cross directories before compiling"      echo "  -c      Clean target and cross directories before compiling"
6      echo "  -r      Recompile lisp runtime"      echo "  -r      Recompile lisp runtime"
7      echo "  -l      Load cross-compiled kernel to make a new lisp kernel"      echo "  -l      Load cross-compiled kernel to make a new lisp kernel"
8      echo "  -B file Use this as the cross bootstrap file."      echo "  -B file Use this as the cross bootstrap file."
9        echo "  -G make Specifies the name of GNU make"
10  }  }
11    
12  while getopts "crlB:" arg  MAKE=make
13    while getopts "crlB:G:" arg
14  do  do
15      case $arg in      case $arg in
16        c) CLEAN_DIR=yes ;;        c) CLEAN_DIR=yes ;;
17        r) BUILD_RUNTIME=yes ;;        r) BUILD_RUNTIME=yes ;;
18        l) LOAD_KERNEL=yes ;;        l) LOAD_KERNEL=yes ;;
19        B) BOOTSTRAP=$OPTARG ;;        B) BOOTSTRAP=$OPTARG ;;
20          G) MAKE=$OPTARG ;;
21        h | \?) usage; exit 1 ;;        h | \?) usage; exit 1 ;;
22      esac      esac
23  done  done
# Line 50  SCRIPT="$3" Line 53  SCRIPT="$3"
53  LISP="${4:-lisp}"  LISP="${4:-lisp}"
54    
55  if [ -z "$BOOTSTRAP" ]; then  if [ -z "$BOOTSTRAP" ]; then
56      CROSSBOOT="$TARGET/cross-boootstrap.lisp"      CROSSBOOT="$TARGET/cross-bootstrap.lisp"
57  else  else
58      CROSSBOOT=$BOOTSTRAP      CROSSBOOT=$BOOTSTRAP
59  fi  fi
# Line 124  EOF Line 127  EOF
127    
128  if [ "$BUILD_RUNTIME" = "yes" ]; then  if [ "$BUILD_RUNTIME" = "yes" ]; then
129      echo Building runtime      echo Building runtime
130      (cd $TARGET/lisp; make)      (cd $TARGET/lisp; ${MAKE})
131  fi  fi
132    
133  if [ "$LOAD_KERNEL" = "yes" ]; then  if [ "$LOAD_KERNEL" = "yes" ]; then

Legend:
Removed from v.1.5.2.1  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.5