platformio.ini 3.9 KB

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