fix(platform): Improve firmware size calculation (#10820)
* fix(platform): Improve firmware size calculation It will still have a couple of hundred of bytes difference * fix(build): Change partition used for UploadHugeFile
This commit is contained in:
parent
e305a483b0
commit
51ef2a1d29
2 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"fqbn_append": "PartitionScheme=huge_app",
|
||||||
"requires_any": [
|
"requires_any": [
|
||||||
"CONFIG_SOC_WIFI_SUPPORTED=y",
|
"CONFIG_SOC_WIFI_SUPPORTED=y",
|
||||||
"CONFIG_ESP_WIFI_REMOTE_ENABLED=y"
|
"CONFIG_ESP_WIFI_REMOTE_ENABLED=y"
|
||||||
|
|
|
||||||
|
|
@ -185,8 +185,8 @@ recipe.output.save_file={build.project_name}.{build.variant}.bin
|
||||||
|
|
||||||
## Compute size
|
## Compute size
|
||||||
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
|
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
|
||||||
recipe.size.regex=^(?:\.iram0\.text|\.iram0\.vectors|\.dram0\.data|\.flash\.text|\.flash\.rodata|)\s+([0-9]+).*
|
recipe.size.regex=^(?:\.iram0\.text|\.iram0\.vectors|\.dram0\.data|\.dram1\.data|\.flash\.text|\.flash\.rodata|\.flash\.appdesc|\.flash\.init_array|\.eh_frame|)\s+([0-9]+).*
|
||||||
recipe.size.regex.data=^(?:\.dram0\.data|\.dram0\.bss|\.noinit)\s+([0-9]+).*
|
recipe.size.regex.data=^(?:\.dram0\.data|\.dram0\.bss|\.dram1\.data|\.dram1\.bss|\.noinit)\s+([0-9]+).*
|
||||||
|
|
||||||
## Required discoveries and monitors
|
## Required discoveries and monitors
|
||||||
## ---------------------------------
|
## ---------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue