From c06a7e2bbdda1d17063f633e2f0a3ed38c677180 Mon Sep 17 00:00:00 2001 From: David Harris Date: Thu, 18 Nov 2021 20:46:59 -0800 Subject: [PATCH] Replaced build-coremark.sh with Makefile --- benchmarks/riscv-coremark/Makefile | 4 ++-- benchmarks/riscv-coremark/build-coremark.sh | 15 --------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100755 benchmarks/riscv-coremark/build-coremark.sh diff --git a/benchmarks/riscv-coremark/Makefile b/benchmarks/riscv-coremark/Makefile index fe5d196ba..718b438f5 100644 --- a/benchmarks/riscv-coremark/Makefile +++ b/benchmarks/riscv-coremark/Makefile @@ -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* \ No newline at end of file + rm -f coremark.bare.riscv* \ No newline at end of file diff --git a/benchmarks/riscv-coremark/build-coremark.sh b/benchmarks/riscv-coremark/build-coremark.sh deleted file mode 100755 index 78c3d709c..000000000 --- a/benchmarks/riscv-coremark/build-coremark.sh +++ /dev/null @@ -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