build system: include SHA256 hash of ELF file into app_desc structure

This commit is contained in:
Ivan Grokhotkov
2019-01-09 20:06:01 +08:00
parent 80f02cd0ea
commit ea52a19c00
7 changed files with 147 additions and 3 deletions

View File

@@ -189,9 +189,11 @@ void IRAM_ATTR call_start_cpu0()
ESP_EARLY_LOGI(TAG, "Secure version: %d", app_desc->secure_version);
#endif
#ifdef CONFIG_APP_COMPILE_TIME_DATE
ESP_EARLY_LOGI(TAG, "Compile time: %s", app_desc->time);
ESP_EARLY_LOGI(TAG, "Compile date: %s", app_desc->date);
ESP_EARLY_LOGI(TAG, "Compile time: %s %s", app_desc->date, app_desc->time);
#endif
char buf[17];
esp_ota_get_app_elf_sha256(buf, sizeof(buf));
ESP_EARLY_LOGI(TAG, "ELF file SHA256: %s...", buf);
ESP_EARLY_LOGI(TAG, "ESP-IDF: %s", app_desc->idf_ver);
}