mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-08 23:46:20 -06:00
🔨 Specific package versions (#26265)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
parent
7c43f4e696
commit
d159ec5c90
7 changed files with 22 additions and 19 deletions
|
@ -31,10 +31,11 @@ if pioutil.is_pio_build():
|
|||
}
|
||||
platform_name = framewords[platform.__class__.__name__]
|
||||
else:
|
||||
platform_name = PackageSpec(platform_packages[0]).name
|
||||
|
||||
if platform_name in [ "Arduino_Core_STM32", "usb-host-msc", "usb-host-msc-cdc-msc", "usb-host-msc-cdc-msc-2", "usb-host-msc-cdc-msc-3", "tool-stm32duino", "biqu-bx-workaround", "main" ]:
|
||||
platform_name = "framework-arduinoststm32"
|
||||
uri = PackageSpec(platform_packages[0]).uri
|
||||
if '@' in uri:
|
||||
platform_name = re.sub(r'@.+', '' , uri)
|
||||
else:
|
||||
platform_name = PackageSpec(platform_packages[0]).name
|
||||
|
||||
FRAMEWORK_DIR = Path(platform.get_package_dir(platform_name))
|
||||
assert FRAMEWORK_DIR.is_dir()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue