forked from bdring/FluidNC
-
Notifications
You must be signed in to change notification settings - Fork 9
/
platformio.ini
198 lines (169 loc) · 5.65 KB
/
platformio.ini
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
src_dir = FluidNC
include_dir = FluidNC/include
; lib_dir = libraries
test_dir = FluidNC/test
data_dir = FluidNC/data
default_envs = wifi_s3
;extra_configs=debug.ini
[common_env_data]
lib_deps_builtin =
SPI
[common]
build_flags =
!python git-version.py
-DCORE_DEBUG_LEVEL=0
-Wno-unused-variable
-Wno-unused-function
lib_deps =
TMCStepper@>=0.7.0,<1.0.0
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays@4.4.1
adafruit/Adafruit NeoPixel
bt_deps =
BluetoothSerial
wifi_deps =
arduinoWebSockets=https://github.com/MitchBradley/arduinoWebSockets#canSend
WiFi=https://github.com/MitchBradley/WiFi#canWrite
; If we include the following explicit dependencies when we get the
; Arduino framework code from github, platformio picks up different
; and incompatible versions of these libraries from who knows where,
; ArduinoOTA
; DNSServer
; ESPmDNS
; Update
; WebServer
; WiFi
; WiFiClientSecure
[common_esp32_base]
platform = https://github.com/platformio/platform-espressif32.git
framework = arduino
platform_packages =
platformio/framework-arduinoespressif32@^3.20016.0
board_build.arduino.upstream_packages = no
upload_speed = 921600
board_build.partitions = min_littlefs.csv ; For 4M ESP32
board_build.filesystem = littlefs
; board_build.partitions = FluidNC/ld/esp32/app3M_spiffs1M_8MB.csv ; For 8Meg ESP32
; board_build.partitions = FluidNC/ld/esp32/app3M_spiffs9M_16MB.csv ; For 16Meg ESP32
monitor_speed = 115200
monitor_flags =
--eol=LF
monitor_filters=esp32_exception_decoder
board_build.f_flash = 80000000L
build_unflags = -std=gnu++11
build_flags = ${common.build_flags} -std=gnu++17 -D_GLIBCXX_HAVE_DIRENT_H -D__FLUIDNC
; -lstdc++fs
build_src_filter =
+<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<src/>
+<esp32>
+<stdfs>
lib_extra_dirs =
libraries
[common_esp32]
; See FluidNC/ld/esp32/README.md
extends = common_esp32_base
board = esp32dev
extra_scripts = FluidNC/ld/esp32/vtable_in_dram.py
[common_esp32_s3]
extends = common_esp32_base
board = esp32-s3-devkitc-1
lib_deps = ${common.lib_deps}
extra_scripts = FluidNC/ld/esp32s3/vtable_in_dram.py
[common_esp32_s2]
extends = common_esp32_base
board = esp32-s2-saola-1
lib_deps = ${common.lib_deps}
[common_wifi]
build_flags = -DENABLE_WIFI -DUSE_LITTLEFS
[common_bt]
build_flags = -DENABLE_BLUETOOTH
[env:noradio_s2]
extends = common_esp32_s2
lib_deps = ${common.lib_deps}
[env:wifi_s2]
extends = common_esp32_s2
lib_deps = ${common.lib_deps} ${common.wifi_deps}
build_flags = ${common_esp32.build_flags} ${common_wifi.build_flags}
[env:bt_s2]
extends = common_esp32_s2
lib_deps = ${common.lib_deps} ${common.bt_deps}
build_flags = ${common_esp32.build_flags} ${common_bt.build_flags}\
[env:wifibt_s2]
extends = common_esp32_s2
lib_deps = ${common.lib_deps} ${common.bt_deps} ${common.wifi_deps}
build_flags = ${common_esp32.build_flags} ${common_wifi.build_flags} ${common_bt.build_flags}
[env:debug]
extends = common_esp32
build_type = debug
lib_deps = ${common.lib_deps}
[env:noradio]
extends = common_esp32
lib_deps = ${common.lib_deps}
[env:wifi]
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.wifi_deps}
build_flags = ${common_esp32.build_flags} ${common_wifi.build_flags}
[env:bt]
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.bt_deps}
build_flags = ${common_esp32.build_flags} ${common_bt.build_flags}
[env:wifibt]
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.bt_deps} ${common.wifi_deps}
build_flags = ${common_esp32.build_flags} ${common_wifi.build_flags} ${common_bt.build_flags}
[env:noradio_s3]
extends = common_esp32_s3
lib_deps = ${common.lib_deps}
[env:wifi_s3]
extends = common_esp32_s3
lib_deps = ${common.lib_deps} ${common.wifi_deps}
build_flags = ${common_esp32.build_flags} ${common_wifi.build_flags} -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1
upload_protocol = espota
upload_port = maslow.local
build_type = debug
[env:bt_s3]
extends = common_esp32_s3
lib_deps = ${common.lib_deps} ${common.bt_deps}
build_flags = ${common_esp32.build_flags} ${common_bt.build_flags}
[env:wifibt_s3]
extends = common_esp32_s3
lib_deps = ${common.lib_deps} ${common.bt_deps} ${common.wifi_deps}
build_flags = ${common_esp32.build_flags} ${common_wifi.build_flags} ${common_bt.build_flags}
[env:noradio_s3_cdc]
extends = common_esp32_s3
lib_deps = ${common.lib_deps}
build_flags = ${common_esp32.build_flags} -DARDUINO_USB_CDC_ON_BOOT=1
[env:wifi_s3_cdc]
extends = common_esp32_s3
lib_deps = ${common.lib_deps} ${common.wifi_deps}
build_flags = ${common_esp32.build_flags} ${common_wifi.build_flags} -DARDUINO_USB_CDC_ON_BOOT=1
[env:bt_s3_cdc]
extends = common_esp32_s3
lib_deps = ${common.lib_deps} ${common.bt_deps}
build_flags = ${common_esp32.build_flags} ${common_bt.build_flags} -DARDUINO_USB_CDC_ON_BOOT=1
[env:wifibt_s3_cdc]
extends = common_esp32_s3
lib_deps = ${common.lib_deps} ${common.bt_deps} ${common.wifi_deps}
build_flags = ${common_esp32.build_flags} ${common_wifi.build_flags} ${common_bt.build_flags} -DARDUINO_USB_CDC_ON_BOOT=1
[env:native]
platform = native
test_build_src = true
build_src_filter =
+<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<src/>
+<X86TestSupport/>
-<src/I2SOut.cpp> -<src\Motors\Trinamic*.cpp>
build_flags = -IX86TestSupport -std=c++17 -limagehlp
lib_compat_mode = off
lib_deps =
google/googletest @ ^1.10.0
lib_extra_dirs =
X86TestSupport