Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/system/cmb-cross
ViewVC logotype

Diff of /sml/trunk/system/cmb-cross

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

revision 5569, Fri Aug 9 13:31:04 2019 UTC revision 5794, Mon Oct 14 16:33:24 2019 UTC
# Line 15  Line 15 
15  twoup=`pwd`  twoup=`pwd`
16  cd $here  cd $here
17    
18  function usage {  # compilation flags for final pass
19    #
20    CTL_FLAGS=
21    
22    usage() {
23    echo "usage: cmb-cross [ -z ] <target>"    echo "usage: cmb-cross [ -z ] <target>"
24    echo "where <target> is one of amd64-unix, ppc-unix, sparc-unix, x86-unix, or x86-win32"    echo "where <target> is one of amd64-unix, ppc-unix, sparc-unix, x86-unix, or x86-win32"
25    exit 1    exit 1
26  }  }
27    
28    to_lower() {
29      echo $@ | tr "[:upper:]" "[:lower:]"
30    }
31    
32    to_upper() {
33      echo $@ | tr "[:lower:]" "[:upper:]"
34    }
35    
36  # check for "-z" flag  # check for "-z" flag
37  if [ x"$1" = "x-z" ] ; then  if [ x"$1" = "x-z" ] ; then
38    shift    shift
# Line 51  Line 63 
63      exit 1      exit 1
64  fi  fi
65    
66  HOST_ARCH=$(echo $ARCH | tr "[:lower:]" "[:upper:]")  HOST_ARCH=$(to_upper $ARCH)
67  HOST_OPSYS=$(echo $OPSYS | tr "[:lower:]" "[:upper:]")  HOST_OPSYS=$(to_upper $OPSYS)
68    
69  # determine the target ARCH, OPSYS, SIZE, and ENDIANESS variables  # determine the target ARCH, OPSYS, SIZE, and ENDIANESS variables
70  target=$1  target=$1
# Line 98  Line 110 
110  esac  esac
111    
112  # lower-case architecture name  # lower-case architecture name
113  architecture=$(echo $TARGET_ARCH | tr "[:upper:]" "[:lower:]")  architecture=$(to_lower $TARGET_ARCH)
114    
115  unset VERSIONTOOL_BUMP_RELEASE  unset VERSIONTOOL_BUMP_RELEASE
116    
# Line 120  Line 132 
132  echo "$this: cross compile to $target"  echo "$this: cross compile to $target"
133    
134  if [ $HOST_OPSYS = win32 ] ; then  if [ $HOST_OPSYS = win32 ] ; then
135      SUFFIX="${HOST_ARCH}-win32"      SUFFIX=$(to_lower "${HOST_ARCH}-win32")
136  else  else
137      SUFFIX="${HOST_ARCH}-unix"      SUFFIX=$(to_lower "${HOST_ARCH}-unix")
138  fi  fi
139  CROSS_BIN_DIR="${target}-cross.bin.${SUFFIX}"  CROSS_BIN_DIR="${target}-cross.bin.${SUFFIX}"
140  CROSS_BOOT_DIR="${target}-cross.boot.${SUFFIX}"  CROSS_BOOT_DIR="${target}-cross.boot.${SUFFIX}"
# Line 134  Line 146 
146    
147  cd $CROSS_BOOT_DIR  cd $CROSS_BOOT_DIR
148    
149  echo $this: $LINK $RUN @SMLboot=BOOTLIST @SMLheap=sml $MODE  echo $this: $LINK $RUN @SMLboot=BOOTLIST @SMLheap=sml $MODE $CTL_FLAGS
150  if $LINK $RUN @SMLboot=BOOTLIST @SMLheap=sml $MODE ; then  if $LINK $RUN @SMLboot=BOOTLIST @SMLheap=sml $MODE $CTL_FLAGS ; then
151      # back to the system directory      # back to the system directory
152      #      #
153      cd $here      cd $here

Legend:
Removed from v.5569  
changed lines
  Added in v.5794

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0