platformio.ini 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. # For detailed documentation with EXAMPLES:
  6. #
  7. # https://docs.platformio.org/en/latest/projectconf/index.html
  8. #
  9. # Automatic targets - enable auto-uploading
  10. #targets = upload
  11. [platformio]
  12. src_dir = Marlin
  13. boards_dir = buildroot/share/PlatformIO/boards
  14. default_envs = mega2560
  15. include_dir = Marlin
  16. extra_configs =
  17. Marlin/config.ini
  18. ini/avr.ini
  19. ini/due.ini
  20. ini/esp32.ini
  21. ini/features.ini
  22. ini/hc32.ini
  23. ini/lpc176x.ini
  24. ini/native.ini
  25. ini/samd21.ini
  26. ini/samd51.ini
  27. ini/stm32-common.ini
  28. ini/stm32f0.ini
  29. ini/stm32f1-maple.ini
  30. ini/stm32f1.ini
  31. ini/stm32f4.ini
  32. ini/stm32f7.ini
  33. ini/stm32h7.ini
  34. ini/stm32g0.ini
  35. ini/teensy.ini
  36. ini/renamed.ini
  37. ini/raspberrypi.ini
  38. #
  39. # The 'common' section applies to most Marlin builds.
  40. #
  41. # By default platformio build will abort after 5 errors.
  42. # Remove '-fmax-errors=5' from build_flags below to see all.
  43. #
  44. [common]
  45. build_flags = -g3 -D__MARLIN_FIRMWARE__ -DNDEBUG
  46. -fmax-errors=5
  47. extra_scripts =
  48. pre:buildroot/share/PlatformIO/scripts/configuration.py
  49. pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  50. pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
  51. pre:buildroot/share/PlatformIO/scripts/preflight-checks.py
  52. post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
  53. lib_deps =
  54. default_src_filter = +<src/*> -<src/config> -<src/tests>
  55. ; LCDs and Controllers
  56. -<src/lcd/HD44780> -<src/lcd/dogm> -<src/lcd/TFTGLCD> -<src/lcd/tft> -<src/lcd/tft_io>
  57. -<src/lcd/e3v2> -<src/lcd/sovol_rts> -<src/lcd/menu> -<src/lcd/extui> -<src/lcd/touch>
  58. -<src/lcd/lcdprint.cpp>
  59. ; Marlin HAL
  60. -<src/HAL>
  61. +<src/HAL/shared>
  62. -<src/HAL/shared/backtrace>
  63. -<src/HAL/shared/cpu_exception>
  64. -<src/HAL/shared/eeprom_if_i2c.cpp>
  65. -<src/HAL/shared/eeprom_if_spi.cpp>
  66. ; Features and G-Codes
  67. -<src/feature>
  68. -<src/gcode/bedlevel>
  69. -<src/gcode/calibrate>
  70. -<src/gcode/config>
  71. -<src/gcode/control>
  72. -<src/gcode/feature>
  73. -<src/gcode/geometry>
  74. -<src/gcode/host>
  75. -<src/gcode/lcd>
  76. -<src/gcode/motion>
  77. -<src/gcode/probe>
  78. -<src/gcode/scara>
  79. -<src/gcode/sd>
  80. -<src/gcode/temp>
  81. -<src/gcode/units>
  82. ; Library Code
  83. -<src/libs/heatshrink>
  84. -<src/libs/BL24CXX.cpp> -<src/libs/W25Qxx.cpp>
  85. -<src/libs/MAX31865.cpp>
  86. -<src/libs/hex_print.cpp>
  87. -<src/libs/least_squares_fit.cpp>
  88. -<src/libs/nozzle.cpp>
  89. ; Modules
  90. -<src/module>
  91. -<src/module/stepper>
  92. ; Media Support
  93. -<src/sd>
  94. ;
  95. ; Minimal Requirements
  96. ;
  97. +<src/gcode/calibrate/G28.cpp>
  98. +<src/gcode/config/M200-M205.cpp>
  99. +<src/gcode/config/M220.cpp>
  100. +<src/gcode/control/M17_M18_M84.cpp>
  101. +<src/gcode/control/M80_M81.cpp>
  102. +<src/gcode/control/M85.cpp>
  103. +<src/gcode/control/M108_*.cpp>
  104. +<src/gcode/control/M111.cpp>
  105. +<src/gcode/control/M120_M121.cpp>
  106. +<src/gcode/control/M999.cpp>
  107. +<src/gcode/geometry/G92.cpp>
  108. +<src/gcode/host/M110.cpp>
  109. +<src/gcode/host/M114.cpp>
  110. +<src/gcode/host/M118.cpp>
  111. +<src/gcode/host/M119.cpp>
  112. +<src/gcode/motion/G0_G1.cpp>
  113. +<src/gcode/motion/G4.cpp>
  114. +<src/gcode/motion/M400.cpp>
  115. +<src/gcode/temp/M105.cpp>
  116. +<src/module/endstops.cpp>
  117. +<src/module/motion.cpp>
  118. +<src/module/planner.cpp>
  119. +<src/module/settings.cpp>
  120. +<src/module/stepper.cpp>
  121. +<src/module/temperature.cpp>
  122. +<src/module/tool_change.cpp>
  123. +<src/module/stepper/indirection.cpp>
  124. #
  125. # Default values apply to all 'env:' prefixed environments
  126. #
  127. [env]
  128. framework = arduino
  129. extra_scripts = ${common.extra_scripts}
  130. build_flags = ${common.build_flags}
  131. lib_deps = ${common.lib_deps}
  132. monitor_speed = 250000
  133. monitor_eol = LF
  134. monitor_echo = yes
  135. monitor_filters = colorize, time, send_on_enter
  136. #
  137. # Just print the dependency tree
  138. #
  139. [env:include_tree]
  140. platform = atmelavr
  141. board = megaatmega2560
  142. build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
  143. build_src_filter = +<src/MarlinCore.cpp>