Browse Source

Fix Lerdge variant script (#18771)

J.C. Nelson 4 years ago
parent
commit
60500c0c49
No account linked to committer's email address

+ 0
- 13
buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py View File

15
 platform = env.PioPlatform()
15
 platform = env.PioPlatform()
16
 board = env.BoardConfig()
16
 board = env.BoardConfig()
17
 variant = board.get("build.variant")
17
 variant = board.get("build.variant")
18
-variant_dir = ' +<buildroot/share/PlatformIO/variants/' + variant + '>';
19
-src_filter = env.get("SRC_FILTER")
20
-print("Starting SRC Filter:", env.get("SRC_FILTER"))
21
-src_filter_value = src_filter[0];
22
-
23
-src_filter_value = src_filter_value + variant_dir
24
-src_filter[0] = src_filter_value;
25
-env["SRC_FILTER"] = src_filter
26
-
27
-print("Modified SRC Filter:", env.get("SRC_FILTER"))
28
-
29
-cxx_flags = env['CXXFLAGS']
30
-print("CXXFLAGS", cxx_flags)
31
 
18
 
32
 FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoststm32")
19
 FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoststm32")
33
 assert os.path.isdir(FRAMEWORK_DIR)
20
 assert os.path.isdir(FRAMEWORK_DIR)

+ 1
- 1
platformio.ini View File

846
 build_flags        = ${common_stm32.build_flags}
846
 build_flags        = ${common_stm32.build_flags}
847
   -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
847
   -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
848
   -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
848
   -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
849
-  -DTRANSFER_CLOCK_DIV=8
849
+  -DTRANSFER_CLOCK_DIV=8 -DHAL_SRAM_MODULE_ENABLED
850
 build_unflags      = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
850
 build_unflags      = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
851
 
851
 
852
 #
852
 #

Loading…
Cancel
Save