* gen-all-opcodes: Build in ./tmp-opcodes. Don't delete dir when done.
* gen-all-sid: Similarily, in ./tmp-sid.
* gen-all-sim: Similarily, in ./tmp-sim.
+2003-07-08 Doug Evans <dje@sebabeach.org>
+
+ * gen-all-doc: Ensure run from cgen src dir.
+ * gen-all-opcodes: Build in ./tmp-opcodes. Don't delete dir when done.
+ * gen-all-sid: Similarily, in ./tmp-sid.
+ * gen-all-sim: Similarily, in ./tmp-sim.
+
2003-06-20 Doug Evans <dje@sebabeach.org>
* gen-all-sim: Add fr30,sh64 support. Only generate m32r by default.
# ??? Some are missing, need to add them after some research.
archs="arm frv i960 m32r openrisc xstormy16"
+if [ ! -f sim.scm ]
+then
+ echo "Not in the src/cgen directory." >& 2
+ exit 1
+fi
+
builddir=tmp-doc
rm -rf $builddir
exit 1
fi
-export cgendir=`pwd`
+builddir=tmp-opc
+
+rm -rf $builddir
+mkdir $builddir
-rm -rf /tmp/tmp-opcodes
-mkdir /tmp/tmp-opcodes
+export cgendir=`pwd`
-cd /tmp/tmp-opcodes
+cd $builddir
$cgendir/../opcodes/configure --prefix /tmp/junk --target m32r-elf --enable-targets=all
make run-cgen-all
-
-rm -rf /tmp/tmp-opcodes
exit 1
fi
-rm -rf /tmp/tmp-sid
-mkdir /tmp/tmp-sid
+builddir=tmp-sid
-cd /tmp/tmp-sid
+rm -rf $builddir
+mkdir $builddir
+
+cd $builddir
$siddir/configure --prefix /tmp/junk --enable-ltdl-install
make configure-sid
cd sid/component/cgen-cpu
make cgen-all
-
-rm -rf /tmp/tmp-sid
exit 1
fi
+builddir=tmp-sim
+
export cgendir=`pwd`
for c in $cpus
do
- rm -rf ./tmp-sim
- mkdir ./tmp-sim
+ rm -rf $builddir
+ mkdir $builddir
case $c in
i960)
(
set -e
set -x
- cd ./tmp-sim
+ cd $builddir
$cgendir/../sim/i960/configure --prefix /tmp/junk --target i960-coff
make stamp-arch stamp-cpu stamp-desc
)
(
set -e
set -x
- cd ./tmp-sim
+ cd $builddir
$cgendir/../sim/m32r/configure --prefix /tmp/junk --target m32r-elf
make stamp-arch stamp-cpu stamp-xcpu
)
(
set -e
set -x
- cd ./tmp-sim
+ cd $builddir
$cgendir/../sim/fr30/configure --prefix /tmp/junk --target fr30-elf
make stamp-arch stamp-cpu
)
(
set -e
set -x
- cd ./tmp-sim
+ cd $builddir
$cgendir/../sim/sh64/configure --prefix /tmp/junk --target ???
make stamp-all
)
;;
esac
done
-
-rm -rf ./tmp-sim