-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename, clean up boards/variants (#21655)
* Consolidate variant scripts * Rename Marlin-local boards * Simplify variants where possible * Rename variants * CHITU_F103 and MEEB_3DP: Maple platform `platformio-build-stm32f1.py` uses the 'board' name, not 'board_build.variant' so folder names match 'board' and not `board_build.variant`.
- Loading branch information
1 parent
69d85cc
commit ee016e6
Showing
167 changed files
with
337 additions
and
837 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,7 @@ jobs: | |
- NUCLEO_F767ZI | ||
- REMRAM_V1 | ||
- BTT_SKR_SE_BX | ||
- chitu_f103 | ||
|
||
# Put lengthy tests last | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
buildroot/share/PlatformIO/scripts/STM32F103RET6_creality.py
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,22 @@ | ||
# | ||
# STM32F103VE_longer.py | ||
# buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py | ||
# Customizations for env:STM32F103VE_longer | ||
# | ||
import os | ||
Import("env") | ||
|
||
# Relocate firmware from 0x08000000 to 0x08010000 | ||
for define in env['CPPDEFINES']: | ||
if define[0] == "VECT_TAB_ADDR": | ||
env['CPPDEFINES'].remove(define) | ||
env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08010000")) | ||
|
||
custom_ld_script = os.path.abspath("buildroot/share/PlatformIO/ldscripts/STM32F103VE_longer.ld") | ||
for i, flag in enumerate(env["LINKFLAGS"]): | ||
if "-Wl,-T" in flag: | ||
env["LINKFLAGS"][i] = "-Wl,-T" + custom_ld_script | ||
elif flag == "-T": | ||
env["LINKFLAGS"][i + 1] = custom_ld_script | ||
import os,marlin | ||
|
||
# Rename ${PROGNAME}.bin and save it as 'project.bin' (No encryption on the Longer3D) | ||
def encrypt(source, target, env): | ||
firmware = open(target[0].path, "rb") | ||
marlin_alfa = open(target[0].dir.path +'/project.bin', "wb") | ||
renamed = open(target[0].dir.path + '/project.bin', "wb") | ||
length = os.path.getsize(target[0].path) | ||
position = 0 | ||
try: | ||
while position < length: | ||
byte = firmware.read(1) | ||
marlin_alfa.write(byte) | ||
renamed.write(byte) | ||
position += 1 | ||
finally: | ||
firmware.close() | ||
marlin_alfa.close() | ||
renamed.close() | ||
|
||
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt); | ||
marlin.add_post_action(encrypt); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.