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 9c4b4aec62
commit cbab3c34f8
4 changed files with 45 additions and 10 deletions

View File

@@ -41,7 +41,6 @@
#include "soc/spi_periph.h"
#include "sdkconfig.h"
#include "esp_efuse.h"
#include "esp_image_format.h"
#include "esp_secure_boot.h"
#include "esp_flash_encrypt.h"
@@ -131,7 +130,7 @@ static esp_err_t bootloader_main(void)
}
/* 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;