2021-05-06 21:45:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
BASEDIR=$PWD
|
|
|
|
CM_FOLDER=coremark
|
2021-07-16 23:13:18 +00:00
|
|
|
#RISCV=/home/ehedenberg/riscvcompiler
|
|
|
|
RISCV=/courses/e190ax/riscvcompiler
|
2021-05-06 21:45:53 +00:00
|
|
|
XCFLAGS="-march=rv64im"
|
|
|
|
cd $BASEDIR/$CM_FOLDER
|
|
|
|
|
|
|
|
# run the compile
|
|
|
|
echo "Start compilation"
|
|
|
|
#make PORT_DIR=../riscv64 compile RISCV=$RISCV
|
|
|
|
#mv coremark.riscv ../
|
|
|
|
|
|
|
|
make PORT_DIR=../riscv64-baremetal compile RISCV=$RISCV XCFLAGS=$XCFLAGS
|
|
|
|
mv coremark.bare.riscv ../
|