2 # Utility script to generate basic description files for all ports.
3 # The main purpose of this script is to have a script that will
4 # exercise loading of all the ports.
6 # Run this script in the src/cgen directory.
14 # List of top-level .cpu files of all ports.
15 # ??? Some are missing: ia32, ia64
16 # Need to add them after some research.
17 # NOTE: Some of these ports are incomplete.
41 if [ ! -f opcodes.scm ]
43 echo "Not in the src/cgen directory." >& 2
47 export builddir=tmp-desc
58 $cgendir/configure --prefix /tmp/junk --target m32r-elf
63 arch=$(basename $archfile .cpu)
65 # FIXME: Seems like this shouldn't be needed. Could be wrong though.
71 sparc) MACHS="sparc-v9" ;; # FIXME: ugh, would rather select on isa
74 if make desc ARCH=$arch ARCHFILE=$archfile ISAS="$ISAS" MACHS="$MACHS" \
77 echo "File generation for $arch succeeded."
79 echo "ERROR: File generation for $arch failed."