2016-07-03 21:33:24 +08:00
|
|
|
#
|
2017-09-26 09:05:22 +08:00
|
|
|
# Marlin Firmware
|
|
|
|
# PlatformIO Configuration File
|
|
|
|
#
|
|
|
|
# For detailed documentation with EXAMPLES:
|
2016-07-03 21:33:24 +08:00
|
|
|
#
|
2020-07-28 14:04:44 +08:00
|
|
|
# https://docs.platformio.org/en/latest/projectconf/index.html
|
2016-07-03 21:33:24 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
# Automatic targets - enable auto-uploading
|
2020-06-12 09:17:22 +08:00
|
|
|
#targets = upload
|
2016-07-03 21:33:24 +08:00
|
|
|
|
|
|
|
[platformio]
|
2019-06-29 15:21:36 +08:00
|
|
|
src_dir = Marlin
|
|
|
|
boards_dir = buildroot/share/PlatformIO/boards
|
2020-03-02 07:39:46 +08:00
|
|
|
default_envs = mega2560
|
2020-07-08 08:31:44 +08:00
|
|
|
include_dir = Marlin
|
2021-04-02 10:53:19 +08:00
|
|
|
extra_configs =
|
2022-08-04 15:38:15 +08:00
|
|
|
Marlin/config.ini
|
2021-04-02 10:53:19 +08:00
|
|
|
ini/avr.ini
|
|
|
|
ini/due.ini
|
|
|
|
ini/esp32.ini
|
|
|
|
ini/features.ini
|
2023-11-27 07:58:56 +08:00
|
|
|
ini/hc32.ini
|
2021-04-02 10:53:19 +08:00
|
|
|
ini/lpc176x.ini
|
|
|
|
ini/native.ini
|
2022-12-13 05:36:50 +08:00
|
|
|
ini/samd21.ini
|
2021-04-02 10:53:19 +08:00
|
|
|
ini/samd51.ini
|
2021-07-21 03:20:28 +08:00
|
|
|
ini/stm32-common.ini
|
2021-04-02 10:53:19 +08:00
|
|
|
ini/stm32f0.ini
|
2021-06-02 14:42:15 +08:00
|
|
|
ini/stm32f1-maple.ini
|
2021-04-02 10:53:19 +08:00
|
|
|
ini/stm32f1.ini
|
|
|
|
ini/stm32f4.ini
|
|
|
|
ini/stm32f7.ini
|
2021-07-21 03:20:28 +08:00
|
|
|
ini/stm32h7.ini
|
2021-12-11 03:38:03 +08:00
|
|
|
ini/stm32g0.ini
|
2021-04-02 10:53:19 +08:00
|
|
|
ini/teensy.ini
|
2022-02-08 04:49:26 +08:00
|
|
|
ini/renamed.ini
|
2024-11-04 04:15:10 +08:00
|
|
|
ini/raspberrypi.ini
|
2016-07-03 21:33:24 +08:00
|
|
|
|
2020-06-12 09:17:22 +08:00
|
|
|
#
|
2021-04-19 03:07:30 +08:00
|
|
|
# The 'common' section applies to most Marlin builds.
|
|
|
|
#
|
|
|
|
# By default platformio build will abort after 5 errors.
|
|
|
|
# Remove '-fmax-errors=5' from build_flags below to see all.
|
2020-06-12 09:17:22 +08:00
|
|
|
#
|
2017-05-01 03:07:01 +08:00
|
|
|
[common]
|
2021-04-27 08:30:34 +08:00
|
|
|
build_flags = -g3 -D__MARLIN_FIRMWARE__ -DNDEBUG
|
2021-04-19 03:07:30 +08:00
|
|
|
-fmax-errors=5
|
2021-04-13 05:49:53 +08:00
|
|
|
extra_scripts =
|
2022-08-04 15:38:15 +08:00
|
|
|
pre:buildroot/share/PlatformIO/scripts/configuration.py
|
2021-04-13 05:49:53 +08:00
|
|
|
pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
|
|
|
|
pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
|
|
|
|
pre:buildroot/share/PlatformIO/scripts/preflight-checks.py
|
|
|
|
post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
|
|
|
|
lib_deps =
|
2023-04-27 20:05:24 +08:00
|
|
|
default_src_filter = +<src/*> -<src/config> -<src/tests>
|
|
|
|
; LCDs and Controllers
|
|
|
|
-<src/lcd/HD44780> -<src/lcd/dogm> -<src/lcd/TFTGLCD> -<src/lcd/tft> -<src/lcd/tft_io>
|
2024-09-28 12:49:28 +08:00
|
|
|
-<src/lcd/e3v2> -<src/lcd/sovol_rts> -<src/lcd/menu> -<src/lcd/extui> -<src/lcd/touch>
|
2020-08-06 21:14:00 +08:00
|
|
|
-<src/lcd/lcdprint.cpp>
|
2023-04-27 20:05:24 +08:00
|
|
|
; Marlin HAL
|
|
|
|
-<src/HAL>
|
|
|
|
+<src/HAL/shared>
|
2020-10-10 05:42:23 +08:00
|
|
|
-<src/HAL/shared/backtrace>
|
2021-02-21 10:22:20 +08:00
|
|
|
-<src/HAL/shared/cpu_exception>
|
2021-01-21 08:18:22 +08:00
|
|
|
-<src/HAL/shared/eeprom_if_i2c.cpp>
|
|
|
|
-<src/HAL/shared/eeprom_if_spi.cpp>
|
2023-04-27 20:05:24 +08:00
|
|
|
; Features and G-Codes
|
|
|
|
-<src/feature>
|
|
|
|
-<src/gcode/bedlevel>
|
|
|
|
-<src/gcode/calibrate>
|
|
|
|
-<src/gcode/config>
|
|
|
|
-<src/gcode/control>
|
|
|
|
-<src/gcode/feature>
|
|
|
|
-<src/gcode/geometry>
|
|
|
|
-<src/gcode/host>
|
|
|
|
-<src/gcode/lcd>
|
|
|
|
-<src/gcode/motion>
|
|
|
|
-<src/gcode/probe>
|
2020-08-06 21:14:00 +08:00
|
|
|
-<src/gcode/scara>
|
|
|
|
-<src/gcode/sd>
|
2023-04-27 20:05:24 +08:00
|
|
|
-<src/gcode/temp>
|
|
|
|
-<src/gcode/units>
|
|
|
|
; Library Code
|
|
|
|
-<src/libs/heatshrink>
|
2020-10-10 05:42:23 +08:00
|
|
|
-<src/libs/BL24CXX.cpp> -<src/libs/W25Qxx.cpp>
|
2021-07-07 08:36:41 +08:00
|
|
|
-<src/libs/MAX31865.cpp>
|
2020-08-06 21:14:00 +08:00
|
|
|
-<src/libs/hex_print.cpp>
|
|
|
|
-<src/libs/least_squares_fit.cpp>
|
2023-04-27 20:05:24 +08:00
|
|
|
-<src/libs/nozzle.cpp>
|
|
|
|
; Modules
|
|
|
|
-<src/module>
|
|
|
|
-<src/module/stepper>
|
|
|
|
; Media Support
|
|
|
|
-<src/sd>
|
|
|
|
;
|
|
|
|
; Minimal Requirements
|
|
|
|
;
|
|
|
|
+<src/gcode/calibrate/G28.cpp>
|
|
|
|
+<src/gcode/config/M200-M205.cpp>
|
|
|
|
+<src/gcode/config/M220.cpp>
|
|
|
|
+<src/gcode/control/M17_M18_M84.cpp>
|
|
|
|
+<src/gcode/control/M80_M81.cpp>
|
|
|
|
+<src/gcode/control/M85.cpp>
|
|
|
|
+<src/gcode/control/M108_*.cpp>
|
|
|
|
+<src/gcode/control/M111.cpp>
|
|
|
|
+<src/gcode/control/M120_M121.cpp>
|
|
|
|
+<src/gcode/control/M999.cpp>
|
|
|
|
+<src/gcode/geometry/G92.cpp>
|
|
|
|
+<src/gcode/host/M110.cpp>
|
|
|
|
+<src/gcode/host/M114.cpp>
|
|
|
|
+<src/gcode/host/M118.cpp>
|
|
|
|
+<src/gcode/host/M119.cpp>
|
|
|
|
+<src/gcode/motion/G0_G1.cpp>
|
|
|
|
+<src/gcode/motion/G4.cpp>
|
|
|
|
+<src/gcode/motion/M400.cpp>
|
|
|
|
+<src/gcode/temp/M105.cpp>
|
|
|
|
+<src/module/endstops.cpp>
|
|
|
|
+<src/module/motion.cpp>
|
|
|
|
+<src/module/planner.cpp>
|
|
|
|
+<src/module/settings.cpp>
|
|
|
|
+<src/module/stepper.cpp>
|
|
|
|
+<src/module/temperature.cpp>
|
|
|
|
+<src/module/tool_change.cpp>
|
|
|
|
+<src/module/stepper/indirection.cpp>
|
2020-07-20 10:42:30 +08:00
|
|
|
|
2020-06-12 09:17:22 +08:00
|
|
|
#
|
|
|
|
# Default values apply to all 'env:' prefixed environments
|
|
|
|
#
|
2019-11-29 19:05:46 +08:00
|
|
|
[env]
|
2022-06-30 09:16:16 +08:00
|
|
|
framework = arduino
|
|
|
|
extra_scripts = ${common.extra_scripts}
|
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
monitor_speed = 250000
|
2022-07-13 02:02:54 +08:00
|
|
|
monitor_eol = LF
|
|
|
|
monitor_echo = yes
|
2022-07-16 09:11:47 +08:00
|
|
|
monitor_filters = colorize, time, send_on_enter
|
2019-11-29 19:05:46 +08:00
|
|
|
|
2019-08-28 09:50:48 +08:00
|
|
|
#
|
|
|
|
# Just print the dependency tree
|
|
|
|
#
|
|
|
|
[env:include_tree]
|
2022-05-19 22:15:57 +08:00
|
|
|
platform = atmelavr
|
|
|
|
board = megaatmega2560
|
|
|
|
build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
|
|
|
|
build_src_filter = +<src/MarlinCore.cpp>
|