bootloader: shrink bin size

1. write a bootloader version of "getting chip revision" function.
2. reduce wordy log.
This commit is contained in:
suda-morris
2019-09-27 10:58:30 +08:00
parent 0af56e2815
commit 6514820311
3 changed files with 44 additions and 9 deletions

View File

@@ -40,7 +40,6 @@
#include "soc/rtc_wdt.h"
#include "sdkconfig.h"
#include "esp_efuse.h"
#include "esp_image_format.h"
#include "esp_secure_boot.h"
#include "esp_flash_encrypt.h"
@@ -129,7 +128,7 @@ static esp_err_t bootloader_main()
}
/* Check chip ID and minimum chip revision that supported by this image */
uint8_t revision = esp_efuse_get_chip_ver();
uint8_t revision = bootloader_common_get_chip_revision();
ESP_LOGI(TAG, "Chip Revision: %d", revision);
if (bootloader_common_check_chip_validity(&fhdr) != ESP_OK) {
return ESP_FAIL;