forked from platformio/platformio-core
Rename env.BuildFirmware to env.BuildProgram
This commit is contained in:
1 parent
ce82b14f6b
commit
0d196ef7b7
14 files changed
+19
-19
No files matched your search
@@ -159,7 +159,7 @@ def DumpIDEData(env):
|
||||
return data
|
||||
|
||||
|
||||
def getCompilerType(env):
|
||||
def GetCompilerType(env):
|
||||
try:
|
||||
sysenv = environ.copy()
|
||||
sysenv['PATH'] = str(env['ENV']['PATH'])
|
||||
@@ -182,5 +182,5 @@ def exists(_):
|
||||
def generate(env):
|
||||
env.AddMethod(ConvertInoToCpp)
|
||||
env.AddMethod(DumpIDEData)
|
||||
env.AddMethod(getCompilerType)
|
||||
env.AddMethod(GetCompilerType)
|
||||
return env
|
||||
@@ -20,7 +20,7 @@ SRC_DEFAULT_FILTER = " ".join([
|
||||
])
|
||||
|
||||
|
||||
def BuildFirmware(env):
|
||||
def BuildProgram(env):
|
||||
|
||||
# fix ASM handling under non-casitive OS
|
||||
if not case_sensitive_suffixes(".s", ".S"):
|
||||
@@ -43,7 +43,7 @@ def BuildFirmware(env):
|
||||
)
|
||||
|
||||
# enable "cyclic reference" for linker
|
||||
if env.get("LIBS", deplibs) and env.getCompilerType() == "gcc":
|
||||
if env.get("LIBS", deplibs) and env.GetCompilerType() == "gcc":
|
||||
env.Prepend(
|
||||
_LIBFLAGS="-Wl,--start-group "
|
||||
)
|
||||
@@ -330,7 +330,7 @@ def exists(_):
|
||||
|
||||
|
||||
def generate(env):
|
||||
env.AddMethod(BuildFirmware)
|
||||
env.AddMethod(BuildProgram)
|
||||
env.AddMethod(ProcessFlags)
|
||||
env.AddMethod(IsFileWithExt)
|
||||
env.AddMethod(VariantDirWrap)
|
||||
|
||||
Reference in new issue
Block a user