From b63bc4f60ad0cae52a31f87044d44c4867c09bf6 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 20 Jun 2003 21:09:00 +0000 Subject: [PATCH] * gen-all-sim: Add fr30,sh64 support. Only generate m32r by default. --- ChangeLog | 4 ++++ gen-all-sim | 37 +++++++++++++++++++++++++++++++------ 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index bcd0dcc..0dc2dd7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-06-20 Doug Evans + + * gen-all-sim: Add fr30,sh64 support. Only generate m32r by default. + 2003-06-19 Doug Evans * mach.scm (-ifld-already-defined?): New proc. diff --git a/gen-all-sim b/gen-all-sim index 7ed984b..9b493df 100755 --- a/gen-all-sim +++ b/gen-all-sim @@ -11,7 +11,10 @@ set -e # For debugging. set -x -cpus="i960 m32r" +# fr30 not included, sim has been marked as obsolete. +# sh64 not included, not sure which configuration to use. +# i960 not included, it's being deleted. +cpus="m32r" if [ ! -f sim.scm ] then @@ -23,15 +26,15 @@ export cgendir=`pwd` for c in $cpus do - rm -rf /tmp/tmp-cgen - mkdir /tmp/tmp-cgen + rm -rf ./tmp-sim + mkdir ./tmp-sim case $c in i960) ( set -e set -x - cd /tmp/tmp-cgen + cd ./tmp-sim $cgendir/../sim/i960/configure --prefix /tmp/junk --target i960-coff make stamp-arch stamp-cpu stamp-desc ) @@ -42,13 +45,35 @@ do ( set -e set -x - cd /tmp/tmp-cgen + cd ./tmp-sim $cgendir/../sim/m32r/configure --prefix /tmp/junk --target m32r-elf make stamp-arch stamp-cpu stamp-xcpu ) test $? == 0 || exit 1 ;; + fr30) + ( + set -e + set -x + cd ./tmp-sim + $cgendir/../sim/fr30/configure --prefix /tmp/junk --target fr30-elf + make stamp-arch stamp-cpu + ) + test $? == 0 || exit 1 + ;; + + sh64) + ( + set -e + set -x + cd ./tmp-sim + $cgendir/../sim/sh64/configure --prefix /tmp/junk --target ??? + make stamp-all + ) + test $? == 0 || exit 1 + ;; + *) echo "unsupported cpu $c" >& 2 exit 1 @@ -56,4 +81,4 @@ do esac done -rm -rf /tmp/tmp-cgen +rm -rf ./tmp-sim -- 2.43.5