forked from black-parrot-sdk/black-parrot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.common
24 lines (20 loc) · 984 Bytes
/
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
## Set variables needed for building tools
export GCC ?= gcc
export CMAKE ?= $(if $(shell which cmake3),cmake3,cmake)
export PYTHON ?= $(if $(shell which python3),python3,python)
export XXD ?= xxd
export CURL ?= curl
## Directories to install into
export BP_SDK_PROG_DIR := $(BP_SDK_DIR)/prog
export BP_SDK_INSTALL_DIR := $(BP_SDK_DIR)/install
export BP_SDK_BIN_DIR := $(BP_SDK_INSTALL_DIR)/bin
export BP_SDK_LIB_DIR := $(BP_SDK_INSTALL_DIR)/lib
export BP_SDK_INCLUDE_DIR := $(BP_SDK_INSTALL_DIR)/include
export BP_SDK_LINKER_DIR := $(BP_SDK_INSTALL_DIR)/linker
export BP_SDK_UCODE_DIR := $(BP_SDK_INSTALL_DIR)/ucode
export BP_SDK_PROG_TOUCH_DIR := $(BP_SDK_INSTALL_DIR)/touchfiles/prog
export BP_SDK_TOOLS_TOUCH_DIR := $(BP_SDK_INSTALL_DIR)/touchfiles/tools
## Cross compilation
export RISCV_TARGET ?= riscv64-unknown-elf-dramfs
export CROSS_COMPILE ?= $(RISCV_TARGET)-
export PATH := $(BP_SDK_BIN_DIR):$(PATH)