Apply PIO-supported custom_option for deps (#18935)
This commit is contained in:
parent
48ddaf35fb
commit
8f0cd470ae
|
@ -37,10 +37,10 @@ def load_config():
|
||||||
FEATURE_CONFIG[feature] = { 'lib_deps': [] }
|
FEATURE_CONFIG[feature] = { 'lib_deps': [] }
|
||||||
add_to_feat_cnf(feature, key[1])
|
add_to_feat_cnf(feature, key[1])
|
||||||
|
|
||||||
# Add options matching marlin.MY_OPTION to the pile
|
# Add options matching custom_marlin.MY_OPTION to the pile
|
||||||
all_opts = env.GetProjectOptions()
|
all_opts = env.GetProjectOptions()
|
||||||
for n in all_opts:
|
for n in all_opts:
|
||||||
mat = re.match(r'marlin\.(.+)', n[0])
|
mat = re.match(r'custom_marlin\.(.+)', n[0])
|
||||||
if mat:
|
if mat:
|
||||||
try:
|
try:
|
||||||
val = env.GetProjectOption(n[0])
|
val = env.GetProjectOption(n[0])
|
||||||
|
|
|
@ -594,7 +594,7 @@ src_filter = ${common.default_src_filter} +<src/HAL/SAMD51>
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
SoftwareSerialM
|
SoftwareSerialM
|
||||||
Adafruit SPIFlash
|
Adafruit SPIFlash
|
||||||
marlin.SDSUPPORT = SdFat - Adafruit Fork
|
custom_marlin.SDSUPPORT = SdFat - Adafruit Fork
|
||||||
debug_tool = jlink
|
debug_tool = jlink
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
@ -616,8 +616,8 @@ extra_scripts = ${common.extra_scripts}
|
||||||
src_filter = ${common.default_src_filter} +<src/HAL/LPC1768>
|
src_filter = ${common.default_src_filter} +<src/HAL/LPC1768>
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
Servo
|
Servo
|
||||||
marlin.USES_LIQUIDCRYSTAL = LiquidCrystal@1.0.0
|
custom_marlin.USES_LIQUIDCRYSTAL = LiquidCrystal@1.0.0
|
||||||
marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip
|
custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip
|
||||||
build_flags = ${common.build_flags} -DU8G_HAL_LINKS -IMarlin/src/HAL/LPC1768/include -IMarlin/src/HAL/LPC1768/u8g
|
build_flags = ${common.build_flags} -DU8G_HAL_LINKS -IMarlin/src/HAL/LPC1768/include -IMarlin/src/HAL/LPC1768/u8g
|
||||||
# debug options for backtrace
|
# debug options for backtrace
|
||||||
#-funwind-tables
|
#-funwind-tables
|
||||||
|
@ -702,7 +702,7 @@ extra_scripts = ${common.extra_scripts}
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
SoftwareSerialM
|
SoftwareSerialM
|
||||||
USBComposite for STM32F1@0.91
|
USBComposite for STM32F1@0.91
|
||||||
marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
|
custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
|
||||||
debug_tool = stlink
|
debug_tool = stlink
|
||||||
upload_protocol = dfu
|
upload_protocol = dfu
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue