-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.mk
184 lines (172 loc) · 3.78 KB
/
config.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
#
# config.mk -- global configuration
#
# Copyright (c) 2025 David Demelier <[email protected]>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
# Global generation options
# =========================
#
# Those options can be overriden to generate pre-defined templates with user
# specific defaults in a local file named `config.local.mk`.
#
# Because Make uses the same syntax for variables and environment variable, it
# is required to prepend the '$' sign twice when referencing environment
# variable and only the ${} syntax is allowed.
#
# Example: ZEPHYR_BASE = $${HOME}/zephyr-4.0.0/zephyrproject
#
# Note: not all settings support environment variable so use them sparingly.
#
# General
# -------
#
# ### WIN32
#
# Define this variable if building for Windows platform.
#
# MinGW
# -----
#
# Options towards MinGW (MinGW-64).
#
# ### MINGW64_PATH
#
# Directories to MinGW64 executables as a newline list.
#
# Defaults: C:/mingw64/bin
#
# ### MINGW64_GCC
#
# Path to gcc.exe.
#
# If relative, it should be present in the PATH which is usually the case at
# $(MINGW64_PATH) will be prepended to all build systems.
#
# Defaults: gcc.exe
#
# ### MINGW64_GXX
#
# Similar to MINGW64_GCC but for g++.
#
# Defaults: g++.exe
#
# ### MINGW64_GDB
#
# Similar to MINGW64_GCC but for gdb.exe
#
# Defaults: gdb.exe
#
# MSVC
# ----
#
# Options specific to Visual Studio with CMake.
#
# ### MSVC_PATH
#
# Extra directories to be appended to PATH variable for tasks and launch
# configurations.
#
# Defaults: C:/msvc/bin
#
# CMake
# -----
#
# ### CMAKE_GENERATOR
#
# Preferred generator to use.
#
# Defaults: Ninja.
#
# ### CMAKE_MINIMUM_MAJOR
#
# Minimum major version required for CMake as used in cmake_minimum_required and
# CMakeUserPresets.json
#
# Defaults: 3
#
# ### CMAKE_MINIMUM_MINOR
#
# Similar to CMAKE_MINIMUM_MAJOR for minor version.
#
# Defaults: 30
#
# ### CMAKE_MINIMUM_PATCH
#
# Similar to CMAKE_MINIMUM_PATCH for patch version.
#
# Defaults: 0
#
# ESP32
# -----
#
# ### ESP32_OPENOCD
#
# Path to the custom espressif openocd fork, we will assume that it is build
# with a prefix 'esp32-' to avoid conflict with upstream openocd.
#
# Zephyr
# ------
#
# ### ZEPHYR_BASE
#
# Path to Zephyr root directory.
#
# Defaults: $${HOME}/zephyrproject/zephyr
#
# ### ZEPHYR_SDK_INSTALL_DIR
#
# Path to the Zephyr SDK which contains toolchain.
#
# Defaults: $${HOME}/zephyr-sdk
#
# ### ZEPHYR_PATH
#
# Extra directories to be appended to PATH variable for tasks and launch
# configurations.
#
# Defaults: $${HOME}/zephyrproject/.venv/bin (Others)
# Defaults: $${HOME}/zephyrproject/.venv/Scripts (Windows)
#
#
# CMake
#
CMAKE_GENERATOR ?= Ninja
CMAKE_MINIMUM_MAJOR ?= 3
CMAKE_MINIMUM_MINOR ?= 30
CMAKE_MINIMUM_PATCH ?= 0
#
# MinGW64
#
MINGW64_GCC ?= gcc.exe
MINGW64_GDB ?= gdb.exe
MINGW64_GXX ?= g++.exe
MINGW64_PATH ?= C:/mingw64/bin
#
# MSVC
#
MSVC ?= C:/msvc/bin
#
# Zephyr
#
ZEPHYR_BASE ?= $${HOME}/zephyrproject/zephyr
ZEPHYR_SDK_INSTALL_DIR ?= $${HOME}/zephyr-sdk
ifeq ($(WIN32),1)
ZEPHYR_PATH ?= $${HOME}/zephyrproject/.venv/Scripts
else
ZEPHYR_PATH ?= $${HOME}/zephyrproject/.venv/bin
endif
ESP32_OPENOCD ?= esp32-openocd
OPENOCD ?= openocd
-include $(TOP)/config.local.mk