forked from black-parrot/black-parrot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.common
41 lines (33 loc) · 1.35 KB
/
Makefile.common
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
37
38
39
40
## Set common environment variables
export TOP ?= $(shell git rev-parse --show-toplevel)
export BP_COMMON_DIR ?= $(TOP)/bp_common
export BP_FE_DIR ?= $(TOP)/bp_fe
export BP_BE_DIR ?= $(TOP)/bp_be
export BP_ME_DIR ?= $(TOP)/bp_me
export BP_TOP_DIR ?= $(TOP)/bp_top
export BP_EXTERNAL_DIR ?= $(TOP)/external
export BASEJUMP_STL_DIR ?= $(BP_EXTERNAL_DIR)/basejump_stl
## Setup CAD tools
# If the machine you are working on is bsg_cadenv compliant, then you do not
# need to setup the cad tools, simply put bsg_cadenv in the same root dir.
export BSG_CADENV_DIR ?= $(TOP)/external/bsg_cadenv
-include $(BSG_CADENV_DIR)/cadenv.mk
## Sepcify license path if needed
export LM_LICENSE_FILE ?=
## Override tool paths if needed
export GCC ?= gcc
export VCS_HOME ?=
export VCS ?= vcs
export URG ?= urg
export VERILATOR ?= verilator
export DC_SHELL ?= dc_shell
# Some environments have issues with setting DVE as an environment variable
export _DVE ?= dve
export GTKWAVE ?= gtkwave
export PYTHON ?= python3
## Needed for verilator g++ compilations
export SYSTEMC_INCLUDE ?= $(BP_EXTERNAL_DIR)/include
export SYSTEMC_LIBDIR ?= $(BP_EXTERNAL_DIR)/lib-linux64
## Add external tools and libraries to environment
export PATH := $(BP_EXTERNAL_DIR)/bin:$(PATH)
export LD_LIBRARY_PATH := $(SYSTEMC_LIBDIR):$(LD_LIBRARY_PATH)