mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
Merge remote-tracking branch 'origin/flash_optimization' into dev #646
This commit is contained in:
@@ -20,28 +20,27 @@ def bin_copy(source, target, env):
|
||||
app_version = bag.get('app_version')
|
||||
|
||||
platform = "ESP32"
|
||||
chip_target = env.get('PIOENV').upper()
|
||||
|
||||
# this breaks the CI so removed
|
||||
# flash_size = env["PIOENV"].split('_')[1]
|
||||
|
||||
# print(env.Dump())
|
||||
# my_flags = env.ParseFlags(env['BUILD_FLAGS'])
|
||||
# defines = {k: v for (k, v) in my_flags.get("CPPDEFINES")}
|
||||
# print(my_flags)
|
||||
# print((my_flags.get("CPPDEFINES"))
|
||||
# print(my_flags.get("CPPDEFINES")
|
||||
|
||||
# alternatively take platform from the pio target
|
||||
# platform = str(target[0]).split(os.path.sep)[2]
|
||||
chip_target = env.get('PIOENV').upper()
|
||||
|
||||
print("app version: "+app_version)
|
||||
print("chip_target: "+chip_target)
|
||||
print("platform: "+platform)
|
||||
# print("flash size: "+flash_size)
|
||||
print("app version: " + app_version)
|
||||
print("platform: " + platform)
|
||||
print("chip_target: " + chip_target)
|
||||
|
||||
# convert . to _ so Windows doesn't complain
|
||||
variant = "EMS-ESP-" + app_version.replace(".", "_") + "-" + chip_target
|
||||
|
||||
# variant = "EMS-ESP-" + app_version.replace(".", "_") + "-" + platform + "_" + flash_size
|
||||
variant = "EMS-ESP-" + chip_target + "-" + app_version.replace(".", "_")
|
||||
|
||||
# check if output directories exist and create if necessary
|
||||
if not os.path.isdir(OUTPUT_DIR):
|
||||
|
||||
Reference in New Issue
Block a user