-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile.include
37 lines (26 loc) · 1.55 KB
/
Makefile.include
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# set TARGETDIR to point to the directory which contains a sub-folder in the same name as the target
export TARGETDIR ?= $(ROOTDIR)/riscv-target
# set XLEN to max supported XLEN. Allowed values are 32 and 64
export XLEN ?= 32
# name of the target. Note a folder of the same name must exist in the TARGETDIR directory
export RISCV_TARGET ?= riscvOVPsim
# set the RISCV_DEVICE environment to a single extension you want to compile, simulate and/or verify.
# Leave this blank if you want to iterate through all the supported extensions available in the target
export RISCV_DEVICE ?=
# set the RISCV_BASE environment to either e or i (default)
export RISCV_BASE ?= i
# set the proccessor mode
export RISCV_MODE ?= m
# set RISCV_TEST to the name of a test to run only that single test in the selected device. It is an error
# to specify a test that doesn't exist in the selected device.
# Leave blank to run all selected tests.
export RISCV_TEST ?=
# set this to a string which needs to be passed to your target Makefile.include files
export RISCV_TARGET_FLAGS ?=
# set this if you want to enable assertions on the test-suites. 1-full 2-fail
export RISCV_ASSERT ?= 0
# set the number of parallel jobs (along with any other arguments) you would like to execute. Note that the target needs to ensure
# that no common files across jobs are created/overwritten leading to unknown behavior
JOBS ?= -j8
# set this if you want to generate the objdump output for elf files
export RISCV_GENERATE_OBJFILE ?= 0