Tell externals it's Marlin
This commit is contained in:
parent
d5f5203880
commit
20fbb751f1
@ -21,7 +21,9 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef __MARLIN_FIRMWARE__
|
||||||
#define __MARLIN_FIRMWARE__
|
#define __MARLIN_FIRMWARE__
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Prefix header to acquire configurations
|
// Prefix header to acquire configurations
|
||||||
|
@ -23,7 +23,7 @@ default_envs = megaatmega2560
|
|||||||
[common]
|
[common]
|
||||||
default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
|
default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
|
||||||
extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
|
extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
|
||||||
build_flags = -fmax-errors=5 -g
|
build_flags = -fmax-errors=5 -g -D__MARLIN_FIRMWARE__
|
||||||
lib_deps =
|
lib_deps =
|
||||||
U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
|
U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
|
||||||
LiquidCrystal@1.3.4
|
LiquidCrystal@1.3.4
|
||||||
@ -532,7 +532,7 @@ platform = ststm32
|
|||||||
framework = arduino
|
framework = arduino
|
||||||
board = malyanM200
|
board = malyanM200
|
||||||
build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections
|
build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections
|
||||||
-DDEBUG_LEVEL=0
|
-DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
|
||||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
|
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
|
||||||
#-<frameworks>
|
#-<frameworks>
|
||||||
lib_ignore = Adafruit NeoPixel, LiquidCrystal, LiquidTWI2, TMCStepper, U8glib-HAL, SPI
|
lib_ignore = Adafruit NeoPixel, LiquidCrystal, LiquidTWI2, TMCStepper, U8glib-HAL, SPI
|
||||||
@ -573,7 +573,7 @@ monitor_speed = 250000
|
|||||||
#
|
#
|
||||||
[env:linux_native]
|
[env:linux_native]
|
||||||
platform = native
|
platform = native
|
||||||
build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread
|
build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__
|
||||||
src_build_flags = -Wall -IMarlin/src/HAL/HAL_LINUX/include
|
src_build_flags = -Wall -IMarlin/src/HAL/HAL_LINUX/include
|
||||||
build_unflags = -Wall
|
build_unflags = -Wall
|
||||||
lib_ldf_mode = off
|
lib_ldf_mode = off
|
||||||
@ -602,7 +602,7 @@ debug_tool = jlink
|
|||||||
platform = atmelavr
|
platform = atmelavr
|
||||||
framework = arduino
|
framework = arduino
|
||||||
board = megaatmega2560
|
board = megaatmega2560
|
||||||
build_flags = -c -H -std=gnu++11 -Wall -Os
|
build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
|
TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
|
||||||
src_filter = +<src/Marlin.cpp>
|
src_filter = +<src/Marlin.cpp>
|
||||||
|
Loading…
Reference in New Issue
Block a user