change(bootloader): optimize bootloader size

Trim bootloader size by moving some logs to DEBUG. Allows
compiling bootloader on P4 with CONFIG_ESPTOOLPY_FLASHMODE_QIO
without changing partition table offset
This commit is contained in:
Marius Vikhammer
2026-08-06 10:01:36 +02:00
parent b6120a46f4
commit 47262f8e6b
6 changed files with 11 additions and 18 deletions
@@ -64,7 +64,7 @@ esp_err_t bootloader_check_bootloader_validity(void)
unsigned int efuse_revision = efuse_hal_blk_version();
unsigned int efuse_major_rev = efuse_revision / 100;
unsigned int efuse_minor_rev = efuse_revision % 100;
ESP_EARLY_LOGI(TAG, "efuse block revision: v%d.%d", efuse_major_rev, efuse_minor_rev);
ESP_EARLY_LOGD(TAG, "efuse block revision: v%d.%d", efuse_major_rev, efuse_minor_rev);
#endif // !CONFIG_IDF_TARGET_ESP32
/* compare with the one set in bootloader image header */
if (bootloader_common_check_chip_validity(&bootloader_image_hdr, ESP_IMAGE_BOOTLOADER) != ESP_OK) {
@@ -113,7 +113,7 @@ void bootloader_config_wdt(void)
void bootloader_enable_random(void)
{
ESP_EARLY_LOGI(TAG, "Enabling RNG early entropy source...");
ESP_EARLY_LOGD(TAG, "Enabling RNG early entropy source...");
bootloader_random_enable();
}
@@ -134,7 +134,7 @@ void bootloader_print_banner(void)
ESP_EARLY_LOGW(TAG, "Unicore bootloader");
#endif
#else
ESP_EARLY_LOGI(TAG, "Multicore bootloader");
ESP_EARLY_LOGD(TAG, "Multicore bootloader");
#endif
}