Replaced build-coremark.sh with Makefile

This commit is contained in:
David Harris 2021-11-18 20:46:59 -08:00
parent 7bdd9b2860
commit c06a7e2bbd
2 changed files with 2 additions and 17 deletions

View File

@ -5,10 +5,10 @@ coremark.bare.riscv.objdump: coremark.bare.riscv
riscv64-unknown-elf-objdump -D coremark.bare.riscv > coremark.bare.riscv.objdump
coremark.bare.riscv:
make -C coremark PORT_DIR=./riscv64-baremetal compile RISCV=/courses/e190ax/riscvcompiler XCFLAGS="-march=rv64im"
make -C coremark PORT_DIR=/home/harris/riscv-wally/benchmarks/riscv-coremark/riscv64-baremetal compile RISCV=/courses/e190ax/riscvcompiler XCFLAGS="-march=rv64im"
mv coremark/coremark.bare.riscv .
.PHONY: clean
clean:
rm coremark.bare.riscv*
rm -f coremark.bare.riscv*

View File

@ -1,15 +0,0 @@
#!/bin/bash
set -e
BASEDIR=$PWD
# run the compile
echo "Start compilation"
#make -C ../../addins/coremark PORT_DIR=$BASEDIR/riscv64-baremetal compile RISCV=/courses/e190ax/riscvcompiler XCFLAGS="-march=rv64im"
#mv ../../addins/coremark/coremark.bare.riscv $BASEDIR
make -C coremark PORT_DIR=$BASEDIR/riscv64-baremetal compile RISCV=/courses/e190ax/riscvcompiler XCFLAGS="-march=rv64im"
mv coremark/coremark.bare.riscv $BASEDIR
riscv64-unknown-elf-objdump -D coremark.bare.riscv > coremark.bare.riscv.objdump #> coremarkcodemod.bare.riscv.objdump
exe2memfile.pl coremark.bare.riscv