ysyx-workbench/abstract-machine/scripts/spike.mk

20 lines
549 B
Makefile
Raw Permalink Normal View History

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