OpenCores
URL https://opencores.org/ocsvn/fwrisc/fwrisc/trunk

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [riscv-test-suite/] [rv64im/] [Makefile] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mballance
#=======================================================================
2
# Makefile for riscv-tests/isa
3
#-----------------------------------------------------------------------
4
 
5
act_dir := .
6
src_dir := $(act_dir)/src
7
work_dir := $(ROOTDIR)/work
8
work_dir_isa := $(work_dir)/$(ISA)
9
 
10
include $(act_dir)/Makefrag
11
 
12
default: all
13
 
14
#--------------------------------------------------------------------
15
# Build rules
16
#--------------------------------------------------------------------
17
 
18
vpath %.S $(act_dir)
19
 
20
INCLUDE=$(ROOTDIR)/riscv-target/$(RISCV_TARGET)/device/$(RISCV_DEVICE)/Makefile.include
21
ifeq ($(wildcard $(INCLUDE)),)
22
    $(error Cannot find '$(INCLUDE)`. Check that RISCV_TARGET and RISCV_DEVICE are set correctly.)
23
endif
24
-include $(INCLUDE)
25
 
26
#------------------------------------------------------------
27
# Build and run assembly tests
28
 
29
%.out64: %.elf
30
        $(RUN_TARGET)
31
 
32
 
33
define compile_template
34
 
35
$$($(1)_tests): %.elf: $(src_dir)/%.S
36
        @mkdir -p $(work_dir_isa)/$$(@D)
37
        $(COMPILE_TARGET)
38
$(1)_tests += $$($(1)_p_tests)
39
 
40
.PHONY: $(1)
41
 
42
tests += $$($(1)_tests)
43
 
44
endef
45
 
46
$(eval $(call compile_template,rv64im,-march=rv64im -mabi=lp64))
47
 
48
tests64_out = $(patsubst %.elf,%.out64,$(target64_tests))
49
 
50
run: $(tests64_out)
51
 
52
#------------------------------------------------------------
53
# Default
54
 
55
all: $(tests_dump)
56
 
57
#------------------------------------------------------------
58
# Clean up
59
 
60
clean:
61
        rm -rf $(work_dir)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.