Tweaks to build scripts

This commit is contained in:
Scott Lahteine
2021-02-27 22:38:57 -06:00
parent 54ccfcc705
commit 903d0b91fc
28 changed files with 77 additions and 37 deletions

View File

@ -1,3 +1,6 @@
#
# STM32F103RC_MEEB_3DP.py
#
try:
import configparser
except ImportError:

View File

@ -1,3 +1,6 @@
#
# STM32F103RC_SKR_MINI.py
#
import os
Import("env")

View File

@ -1,3 +1,6 @@
#
# STM32F103RC_fysetc.py
#
import os
from os.path import join
from os.path import expandvars

View File

@ -1,3 +1,6 @@
#
# STM32F103RET6_creality.py
#
import os
Import("env")

View File

@ -1,3 +1,6 @@
#
# STM32F103RE_SKR_E3_DIP.py
#
import os
Import("env")

View File

@ -1,3 +1,7 @@
#
# STM32F103VE_longer.py
# Customizations for env:STM32F103VE_longer
#
import os
Import("env")

View File

@ -1,3 +1,6 @@
#
# STM32F1_create_variant.py
#
import os,shutil
from SCons.Script import DefaultEnvironment
from platformio import util

View File

@ -1,3 +1,7 @@
#
# STM32F401VE_STEVAL.py
# Customizations for env:STM32F401VE_STEVAL
#
import os
Import("env")

View File

@ -1,2 +1,5 @@
#
# add_nanolib.py
#
Import("env")
env.Append(LINKFLAGS=["--specs=nano.specs"])

View File

@ -1,8 +1,9 @@
#
# chitu_crypt.py
# Customizations for Chitu boards
#
Import("env")
import os
import random
import struct
import uuid
import os,random,struct,uuid
# Relocate firmware from 0x08000000 to 0x08008800
env['CPPDEFINES'].remove(("VECT_TAB_ADDR", "0x8000000"))

View File

@ -28,8 +28,8 @@ def add_cpu_freq():
if env.GetBuildType() == "debug":
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
# On some platform, F_CPU is a runtime variable. Since it's used to convert from ns
# to CPU cycles, this adds overhead preventing small delay (in the order of less than
# On some platform, F_CPU is a runtime variable. Since it's used to convert from ns
# to CPU cycles, this adds overhead preventing small delay (in the order of less than
# 30 cycles) to be generated correctly. By using a compile time constant instead
# the compiler will perform the computation and this overhead will be avoided
add_cpu_freq()

View File

@ -2,9 +2,7 @@
# common-dependencies.py
# Convenience script to check dependencies and add libs and sources for Marlin Enabled Features
#
import subprocess
import os
import re
import subprocess,os,re
try:
import configparser
except ImportError:

View File

@ -1,3 +1,6 @@
#
# copy_marlin_variant_to_framework.py
#
import os,shutil
from SCons.Script import DefaultEnvironment
from platformio import util

View File

@ -1,9 +1,8 @@
#
# download_mks_assets.py
#
Import("env")
import os
import requests
import zipfile
import tempfile
import shutil
import os,requests,zipfile,tempfile,shutil
url = "https://github.com/makerbase-mks/Mks-Robin-Nano-Marlin2.0-Firmware/archive/master.zip"
zip_path = os.path.join(env.Dictionary("PROJECT_LIBDEPS_DIR"), "mks-assets.zip")

View File

@ -1,3 +1,6 @@
#
# fix_framework_weakness.py
#
from os.path import join, isfile
import shutil
from pprint import pprint

View File

@ -1,3 +1,7 @@
#
# fly_mini.py
# Customizations for env:FLY_MINI
#
import os
Import("env")

View File

@ -1,3 +1,7 @@
#
# lerdge.py
# Customizations for Lerdge build environments
#
import os,sys
Import("env")

View File

@ -2,8 +2,7 @@
# preflight-checks.py
# Check for common issues prior to compiling
#
import os
import re
import os,re
Import("env")
def get_envs_for_board(board):

View File

@ -1,3 +1,7 @@
#
# random-bin.py
# Set a unique firmware name based on current date and time
#
Import("env")
from datetime import datetime

View File

@ -1,3 +1,6 @@
#
# stm32_bootloader.py
#
import os,sys,shutil
Import("env")