From d36127963ce14aeee0010e2f007630fc267eb3a6 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Wed, 9 Jun 2021 12:45:14 +0300 Subject: [PATCH] scripts: comments --- code/scripts/pio_main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/scripts/pio_main.py b/code/scripts/pio_main.py index 75b88efc..cf7a498f 100644 --- a/code/scripts/pio_main.py +++ b/code/scripts/pio_main.py @@ -26,6 +26,7 @@ import os CI = "true" == os.environ.get("CI") +# See what happens in-between linking .cpp.o + .a into the resulting .elf env.ProcessFlags("-Wl,-Map -Wl,\\\"${BUILD_DIR}/${PROGNAME}.map\\\"") # Always show warnings for project code @@ -46,10 +47,12 @@ if "DISABLE_POSTMORTEM_STACKDUMP" in env["CPPFLAGS"]: "$BUILD_DIR/FrameworkArduino/core_esp8266_postmortem.cpp.o", dummy_ets_printf ) -# handle add -DAPP_VERSION=... that was set and / or detected +# override static version flag from the espurna/config/version.h +# either completely, or change the version / revision / suffix part separately app_inject_version(projenv) -# handle OTA board and flags here, since projenv is not available in pre-scripts +# handle ESPURNA_BOARD and ESPURNA_FLAGS here, since projenv is not available in pre-scripts +# TODO: prefer PLATFORMIO_SRC_BUILD_FLAGS instead? both of these only allow -D... app_inject_flags(projenv) # handle when CI does a tagged build or user explicitly asked to store the firmware.bin