-
Notifications
You must be signed in to change notification settings - Fork 4
/
common.mk
36 lines (27 loc) · 1.21 KB
/
common.mk
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
# Copyright (C) 2018 SCARV project <[email protected]>
#
# Use of this source code is restricted per the MIT license, a copy of which
# can be found at https://opensource.org/licenses/MIT (or should be included
# as LICENSE.txt within the associated archive or repository).
#
# This makefile contains common parameters used across the repository
# ----------------------------------------------------------------------
#
# Toolchain paths
# ----------------------------------------------------------------------
TC_SUBMODULE = $(REPO_HOME)/extern/riscv-gnu-toolchain
TC_BUILD = $(REPO_BUILD)/toolchain/build
TC_INSTALL = $(REPO_BUILD)/toolchain/install
BINUTILS_SUBMODULE = $(TC_SUBMODULE)/riscv-binutils
BINUTILS_PATCH = $(REPO_HOME)/src/toolchain/binutils.patch
PK_SUBMODULE = $(REPO_HOME)/extern/riscv-pk
PK_PATCH = $(REPO_HOME)/src/toolchain/pk.patch
PK32_BUILD = $(REPO_BUILD)/pk32
PK32_INSTALL = $(TC_INSTALL)
PK64_BUILD = $(REPO_BUILD)/pk64
PK64_INSTALL = $(TC_INSTALL)
SPIKE_SUBMODULE = $(REPO_HOME)/extern/riscv-isa-sim
SPIKE_BUILD = $(REPO_BUILD)/spike
SPIKE_INSTALL = $(TC_INSTALL)
SPIKE_PATCH = $(REPO_HOME)/src/toolchain/spike.patch
RISCV_HOST = riscv64-unknown-elf