build system: add IDF_VER environment variable and preprocessor define

This commit is contained in:
Ivan Grokhotkov
2017-01-11 00:24:50 +08:00
parent 0efaa4f4b8
commit 89e0ecc272
4 changed files with 15 additions and 3 deletions

View File

@@ -233,7 +233,7 @@ static bool ota_select_valid(const esp_ota_select_entry_t *s)
void bootloader_main()
{
uart_console_configure();
ESP_LOGI(TAG, "Espressif ESP32 2nd stage bootloader v. %s", BOOT_VERSION);
ESP_LOGI(TAG, "ESP-IDF %s 2nd stage bootloader", IDF_VER);
#if defined(CONFIG_SECURE_BOOT_ENABLED) || defined(CONFIG_FLASH_ENCRYPTION_ENABLED)
esp_err_t err;
#endif