-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.variables
28 lines (26 loc) · 1.02 KB
/
Makefile.variables
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
####################################
# Get the directory of the Makefile
####################################
WORKSPACE_DIR := $(CURDIR)
####################################
# Define Common Macros
####################################
MAXIMUM_CPU_CORES?=$(shell grep -c ^processor /proc/cpuinfo)
COMPILER_NAME=gcc-arm-none-eabi-10.3-2021.10-x86_64-linux
####################################
# Define Common Dirs
####################################
SW_DIR= $(WORKSPACE_DIR)/software
TOOLS_DIR= $(WORKSPACE_DIR)/tools
CMAKE_PROJECT_DIR = $(TOOLS_DIR)/build/CMake
BUILD_DIR = $(CMAKE_PROJECT_DIR)/Build
BUILD_TESTS_DIR = $(CMAKE_PROJECT_DIR)/Test
INSTALL_DIR = $(CMAKE_PROJECT_DIR)/output
BINARY_INSTALL_DIR = $(INSTALL_DIR)/build
TESTS_INSTALL_DIR = $(INSTALL_DIR)/tests
UNIT_TESTS_INSTALL_DIR = $(TESTS_INSTALL_DIR)/unit
COMPILER_DIR=/opt/compilers
TOOLCHAIN_DIR=$(COMPILER_DIR)/$(COMPILER_NAME)
CMOCK_DIR = $(TOOLS_DIR)/frameworks/CMock
UNITY_ROOT= $(CMOCK_DIR)/vendor/unity
####################################