forked from rogerclarkmelbourne/STM32duino-bootloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
merge_sketch_and_bootloaders.bat
24 lines (20 loc) · 1.9 KB
/
merge_sketch_and_bootloaders.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'@echo off
setlocal disableDelayedExpansion
for /f "delims=" %%A in ('forfiles /p .\bootloader_only_binaries /s /m generic*.bin /c "cmd /c echo @relpath"') do (
set "file=%%~A"
setlocal enableDelayedExpansion
.\sketch_combiner\bin_merge_tool\mergesketch.exe .\bootloader_only_binaries\!file:~2! .\sketch_combiner\congratulations_sketch\congratulations_sketch.ino.generic_stm32f103c.bin .\binaries\!file:~2!
endlocal
)
.\sketch_combiner\bin_merge_tool\mergesketch.exe .\bootloader_only_binaries\naze32_boot20.bin .\sketch_combiner\congratulations_sketch\congratulations_sketch.ino.generic_stm32f103c.bin .\binaries\naze32_boot20.bin
.\sketch_combiner\bin_merge_tool\mergesketch.exe .\bootloader_only_binaries\stbee_boot20.bin .\sketch_combiner\congratulations_sketch\congratulations_sketch.ino.generic_stm32f103c.bin .\binaries\stbee_boot20.bin
.\sketch_combiner\bin_merge_tool\mergesketch.exe .\bootloader_only_binaries\dso138_boot20.bin .\sketch_combiner\congratulations_sketch\congratulations_sketch.ino.generic_stm32f103c.bin .\binaries\dso138_boot20.bin
setlocal disableDelayedExpansion
for /f "delims=" %%A in ('forfiles /p .\bootloader_only_binaries /s /m maple*.bin /c "cmd /c echo @relpath"') do (
set "file=%%~A"
setlocal enableDelayedExpansion
.\sketch_combiner\bin_merge_tool\mergesketch.exe .\bootloader_only_binaries\!file:~2! .\sketch_combiner\congratulations_sketch\congratulations_sketch.ino.maple_mini.bin .\binaries\!file:~2!
endlocal
)
.\sketch_combiner\bin_merge_tool\mergesketch.exe .\bootloader_only_binaries\gd32f1_generic_boot20_pc13.bin .\sketch_combiner\congratulations_sketch\congratulations_sketch.ino.generic_gd32f103c.bin .\binaries\gd32f1_generic_boot20_pc13.bin
.\sketch_combiner\bin_merge_tool\mergesketch.exe .\bootloader_only_binaries\gd32f1_frankenmaple.bin .\sketch_combiner\congratulations_sketch\congratulations_sketch.ino.generic_gd32f103c.bin .\binaries\gd32f1_frankenmaple.bin