ysyx-workbench/abstract-machine/scripts/spike.mk
xinyangli 8e4feb4010 NJU-ProjectN/abstract-machine ics2023 initialized
NJU-ProjectN/abstract-machine 3348db971fd860be5cb28e21c18f9d0e65d0c96a Merge pull request #8 from Jasonyanyusong/master
2023-12-21 00:20:42 +08:00

19 lines
549 B
Makefile

include $(AM_HOME)/scripts/isa/riscv.mk
AM_SRCS := riscv/spike/trm.c \
riscv/spike/ioe.c \
riscv/spike/timer.c \
riscv/spike/start.S \
riscv/spike/htif.S \
platform/dummy/cte.c \
platform/dummy/vme.c \
platform/dummy/mpe.c \
CFLAGS += -fdata-sections -ffunction-sections
LDFLAGS += -T $(AM_HOME)/am/src/riscv/spike/linker.ld
LDFLAGS += --gc-sections -e _start
CFLAGS += -DMAINARGS=\"$(mainargs)\"
.PHONY: $(AM_HOME)/am/src/riscv/spike/trm.c
image: $(IMAGE).elf