mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
coremark makefile
This commit is contained in:
parent
fed0bb08d6
commit
bb2bde2743
@ -1,14 +1,21 @@
|
|||||||
|
#cmbase=../../addins/coremark
|
||||||
|
PORT_DIR = $(CURDIR)/riscv64-baremetal
|
||||||
|
cmbase=coremark
|
||||||
|
sources=$(cmbase)/core_main.c $(cmbase)/core_list_join.c $(cmbase)/coremark.h \
|
||||||
|
$(cmbase)/core_matrix.c $(cmbase)/core_state.c $(cmbase)/core_util.c \
|
||||||
|
$(PORT_DIR)/core_portme.h $(PORT_DIR)/core_portme.c $(PORT_DIR)/core_portme.mak \
|
||||||
|
$(PORT_DIR)/crt.S $(PORT_DIR)/encoding.h $(PORT_DIR)/util.h $(PORT_DIR)/syscalls.c
|
||||||
|
|
||||||
work/coremark.bare.riscv.memfile: work/coremark.bare.riscv.objdump
|
work/coremark.bare.riscv.memfile: work/coremark.bare.riscv.objdump
|
||||||
exe2memfile.pl work/coremark.bare.riscv
|
exe2memfile.pl work/coremark.bare.riscv
|
||||||
|
|
||||||
work/coremark.bare.riscv.objdump: work/coremark.bare.riscv
|
work/coremark.bare.riscv.objdump: work/coremark.bare.riscv
|
||||||
riscv64-unknown-elf-objdump -D work/coremark.bare.riscv > work/coremark.bare.riscv.objdump
|
riscv64-unknown-elf-objdump -D work/coremark.bare.riscv > work/coremark.bare.riscv.objdump
|
||||||
|
|
||||||
work/coremark.bare.riscv:
|
work/coremark.bare.riscv: $(sources)
|
||||||
make -C coremark PORT_DIR=/home/harris/riscv-wally/benchmarks/riscv-coremark/riscv64-baremetal compile RISCV=/courses/e190ax/riscvcompiler XCFLAGS="-march=rv64im"
|
# make -C $(cmbase) PORT_DIR=/home/harris/riscv-wally/benchmarks/riscv-coremark/riscv64-baremetal compile RISCV=/courses/e190ax/riscvcompiler XCFLAGS="-march=rv64g"
|
||||||
mv coremark/coremark.bare.riscv work
|
make -C $(cmbase) PORT_DIR=$(PORT_DIR) compile RISCV=/courses/e190ax/riscvcompiler XCFLAGS="-march=rv64im"
|
||||||
#make -C ../../addins/coremark PORT_DIR=/home/harris/riscv-wally/benchmarks/riscv-coremark/riscv64-baremetal compile RISCV=/courses/e190ax/riscvcompiler XCFLAGS="-march=rv64im"
|
mv $(cmbase)/coremark.bare.riscv work
|
||||||
#mv ../../addins/coremark/coremark.bare.riscv work
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
@ -27,7 +27,9 @@ RISCVTYPE=riscv64-unknown-elf
|
|||||||
OUTFLAG= -o
|
OUTFLAG= -o
|
||||||
# Flag: CC
|
# Flag: CC
|
||||||
# Use this flag to define compiler to use
|
# Use this flag to define compiler to use
|
||||||
|
# david_harris@hmc.edu 20 Nov 2021 removed full path; require
|
||||||
CC = $(RISCVTOOLS)/bin/$(RISCVTYPE)-gcc
|
CC = $(RISCVTOOLS)/bin/$(RISCVTYPE)-gcc
|
||||||
|
#CC = $(RISCVTYPE)-gcc
|
||||||
# Flag: CFLAGS
|
# Flag: CFLAGS
|
||||||
# Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags"
|
# Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags"
|
||||||
#PORT_CFLAGS = -O2 -static -std=gnu99
|
#PORT_CFLAGS = -O2 -static -std=gnu99
|
||||||
|
Loading…
Reference in New Issue
Block a user