Scott Lahteine
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
35 additions and
6 deletions
-
buildroot/share/PlatformIO/scripts/common-cxxflags.py
-
buildroot/share/PlatformIO/scripts/common-dependencies-post.py
-
buildroot/share/PlatformIO/scripts/common-dependencies.py
-
buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
-
buildroot/share/PlatformIO/scripts/preflight-checks.py
|
@ -3,6 +3,12 @@ |
|
|
# Convenience script to apply customizations to CPP flags |
|
|
# Convenience script to apply customizations to CPP flags |
|
|
# |
|
|
# |
|
|
Import("env") |
|
|
Import("env") |
|
|
|
|
|
|
|
|
|
|
|
# Detect that 'vscode init' is running |
|
|
|
|
|
from SCons.Script import COMMAND_LINE_TARGETS |
|
|
|
|
|
if "idedata" in COMMAND_LINE_TARGETS: |
|
|
|
|
|
env.Exit(0) |
|
|
|
|
|
|
|
|
env.Append(CXXFLAGS=[ |
|
|
env.Append(CXXFLAGS=[ |
|
|
"-Wno-register" |
|
|
"-Wno-register" |
|
|
#"-Wno-incompatible-pointer-types", |
|
|
#"-Wno-incompatible-pointer-types", |
|
|
|
@ -2,8 +2,13 @@ |
|
|
# common-dependencies-post.py |
|
|
# common-dependencies-post.py |
|
|
# Convenience script to add build flags for Marlin Enabled Features |
|
|
# Convenience script to add build flags for Marlin Enabled Features |
|
|
# |
|
|
# |
|
|
|
|
|
|
|
|
Import("env") |
|
|
Import("env") |
|
|
|
|
|
|
|
|
|
|
|
# Detect that 'vscode init' is running |
|
|
|
|
|
from SCons.Script import COMMAND_LINE_TARGETS |
|
|
|
|
|
if "idedata" in COMMAND_LINE_TARGETS: |
|
|
|
|
|
env.Exit(0) |
|
|
|
|
|
|
|
|
Import("projenv") |
|
|
Import("projenv") |
|
|
|
|
|
|
|
|
def apply_board_build_flags(): |
|
|
def apply_board_build_flags(): |
|
|
|
@ -2,6 +2,15 @@ |
|
|
# common-dependencies.py |
|
|
# common-dependencies.py |
|
|
# Convenience script to check dependencies and add libs and sources for Marlin Enabled Features |
|
|
# Convenience script to check dependencies and add libs and sources for Marlin Enabled Features |
|
|
# |
|
|
# |
|
|
|
|
|
Import("env") |
|
|
|
|
|
|
|
|
|
|
|
#print(env.Dump()) |
|
|
|
|
|
|
|
|
|
|
|
# Detect that 'vscode init' is running |
|
|
|
|
|
from SCons.Script import COMMAND_LINE_TARGETS |
|
|
|
|
|
if "idedata" in COMMAND_LINE_TARGETS: |
|
|
|
|
|
env.Exit(0) |
|
|
|
|
|
|
|
|
import subprocess,os,re |
|
|
import subprocess,os,re |
|
|
|
|
|
|
|
|
PIO_VERSION_MIN = (5, 0, 3) |
|
|
PIO_VERSION_MIN = (5, 0, 3) |
|
@ -31,10 +40,6 @@ except: |
|
|
from platformio.package.meta import PackageSpec |
|
|
from platformio.package.meta import PackageSpec |
|
|
from platformio.project.config import ProjectConfig |
|
|
from platformio.project.config import ProjectConfig |
|
|
|
|
|
|
|
|
Import("env") |
|
|
|
|
|
|
|
|
|
|
|
#print(env.Dump()) |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
try: |
|
|
verbose = int(env.GetProjectOption('custom_verbose')) |
|
|
verbose = int(env.GetProjectOption('custom_verbose')) |
|
|
except: |
|
|
except: |
|
|
|
@ -1,6 +1,13 @@ |
|
|
# |
|
|
# |
|
|
# copy_marlin_variant_to_framework.py |
|
|
# copy_marlin_variant_to_framework.py |
|
|
# |
|
|
# |
|
|
|
|
|
Import("env") |
|
|
|
|
|
|
|
|
|
|
|
# Detect that 'vscode init' is running |
|
|
|
|
|
from SCons.Script import COMMAND_LINE_TARGETS |
|
|
|
|
|
if "idedata" in COMMAND_LINE_TARGETS: |
|
|
|
|
|
env.Exit(0) |
|
|
|
|
|
|
|
|
import os,shutil |
|
|
import os,shutil |
|
|
from SCons.Script import DefaultEnvironment |
|
|
from SCons.Script import DefaultEnvironment |
|
|
from platformio import util |
|
|
from platformio import util |
|
|
|
@ -2,9 +2,15 @@ |
|
|
# preflight-checks.py |
|
|
# preflight-checks.py |
|
|
# Check for common issues prior to compiling |
|
|
# Check for common issues prior to compiling |
|
|
# |
|
|
# |
|
|
import os,re,sys |
|
|
|
|
|
Import("env") |
|
|
Import("env") |
|
|
|
|
|
|
|
|
|
|
|
# Detect that 'vscode init' is running |
|
|
|
|
|
from SCons.Script import COMMAND_LINE_TARGETS |
|
|
|
|
|
if "idedata" in COMMAND_LINE_TARGETS: |
|
|
|
|
|
env.Exit(0) |
|
|
|
|
|
|
|
|
|
|
|
import os,re,sys |
|
|
|
|
|
|
|
|
def get_envs_for_board(board): |
|
|
def get_envs_for_board(board): |
|
|
with open(os.path.join("Marlin", "src", "pins", "pins.h"), "r") as file: |
|
|
with open(os.path.join("Marlin", "src", "pins", "pins.h"), "r") as file: |
|
|
|
|
|
|
|
|