1# 2# RISC-V system tests 3# 4 5TEST_SRC = $(SRC_PATH)/tests/tcg/riscv64 6VPATH += $(TEST_SRC) 7 8LINK_SCRIPT = $(TEST_SRC)/semihost.ld 9LDFLAGS = -T $(LINK_SCRIPT) 10CFLAGS += -g -Og 11 12%.o: %.S 13 $(CC) $(CFLAGS) $< -c -o $@ 14%: %.o $(LINK_SCRIPT) 15 $(LD) $(LDFLAGS) $< -o $@ 16 17QEMU_OPTS += -M virt -display none -semihosting -device loader,file= 18 19EXTRA_RUNS += run-issue1060 20run-issue1060: issue1060 21 $(call run-test, $<, $(QEMU) $(QEMU_OPTS)$<) 22