forked from ucb-bar/gemmini-rocc-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefrag
More file actions
25 lines (18 loc) · 657 Bytes
/
Makefrag
File metadata and controls
25 lines (18 loc) · 657 Bytes
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
XLEN ?= 64
CC_BAREMETAL := riscv$(XLEN)-unknown-elf-gcc
CC_LINUX_PRESENT := $(shell command -v riscv$(XLEN)-unknown-linux-gnu-gcc 2> /dev/null)
# Support Linux gcc from riscv-gnu-toolchain and from system packages
# riscv64-unknown-linux-gnu-gcc is built from riscv-gnu-toolchain, comes with Firesim's tools
# riscv64-linux-gnu-gcc comes from a system package
ifdef CC_LINUX_PRESENT
CC_LINUX := riscv$(XLEN)-unknown-linux-gnu-gcc
else
CC_LINUX := riscv$(XLEN)-linux-gnu-gcc
endif
ENV_P = $(abs_top_srcdir)/riscv-tests/env/p
ENV_V = $(abs_top_srcdir)/riscv-tests/env/v
.PHONY: all clean default
default: all
src_dir = .
clean:
rm -rf $(junk)