mirror of https://github.com/arendst/Tasmota.git
fix c3 map metrics (#18465)
This commit is contained in:
parent
3c57755bb7
commit
ca88aa2519
|
@ -20,6 +20,10 @@ def map_gzip(source, target, env):
|
||||||
with map_file.open("rb") as fp:
|
with map_file.open("rb") as fp:
|
||||||
with gzip.open(gzip_file, "wb", compresslevel=9) as f:
|
with gzip.open(gzip_file, "wb", compresslevel=9) as f:
|
||||||
shutil.copyfileobj(fp, f)
|
shutil.copyfileobj(fp, f)
|
||||||
|
if env["PIOPLATFORM"] == "espressif32":
|
||||||
|
# Print Metrics for firmware using "map" file
|
||||||
|
import tasmota_metrics
|
||||||
|
env.Execute("$PYTHONEXE -m tasmota_metrics " + str(map_file.resolve()))
|
||||||
|
|
||||||
# remove map file
|
# remove map file
|
||||||
if map_file.is_file():
|
if map_file.is_file():
|
||||||
|
|
|
@ -28,11 +28,4 @@ def bin_map_copy(source, target, env):
|
||||||
shutil.move(tasmotapiolib.get_source_map_path(env), map_file)
|
shutil.move(tasmotapiolib.get_source_map_path(env), map_file)
|
||||||
if env["PIOPLATFORM"] == "espressif32":
|
if env["PIOPLATFORM"] == "espressif32":
|
||||||
shutil.copy(factory, one_bin_file)
|
shutil.copy(factory, one_bin_file)
|
||||||
# Print Metrics for firmware using "map" file
|
|
||||||
import esp_idf_size
|
|
||||||
CYAN = '\033[96m'
|
|
||||||
ENDC = '\033[0m'
|
|
||||||
print(CYAN + "=============================================================================================" + ENDC)
|
|
||||||
env.Execute("$PYTHONEXE -m esp_idf_size " + str(map_file.resolve()))
|
|
||||||
print(CYAN + "=============================================================================================" + ENDC)
|
|
||||||
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", bin_map_copy)
|
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", bin_map_copy)
|
||||||
|
|
|
@ -42,7 +42,7 @@ extra_scripts = pre:pio-tools/add_c_flags.py
|
||||||
${esp_defaults.extra_scripts}
|
${esp_defaults.extra_scripts}
|
||||||
|
|
||||||
[core32]
|
[core32]
|
||||||
platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.04.00/platform-espressif32.zip
|
platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.04.01/platform-espressif32.zip
|
||||||
platform_packages =
|
platform_packages =
|
||||||
build_unflags = ${esp32_defaults.build_unflags}
|
build_unflags = ${esp32_defaults.build_unflags}
|
||||||
build_flags = ${esp32_defaults.build_flags}
|
build_flags = ${esp32_defaults.build_flags}
|
||||||
|
|
Loading…
Reference in New Issue