mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
change(flash): deprecate bootloader_flash_priv.h
This commit is contained in:
committed by
Armando (Dou Yiwen)
parent
6e3abd12a1
commit
2cacb0bd56
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
#include "esp_log.h"
|
||||
#include "bootloader_flash_priv.h"
|
||||
#include "esp_private/bootloader_flash_internal.h"
|
||||
#include "bootloader_sha.h"
|
||||
#include "bootloader_sha_flash.h"
|
||||
#include "spi_flash_mmap.h"
|
||||
@@ -57,7 +57,7 @@ static esp_err_t bootloader_sha_flash_contents(esp_sha_type type, uint32_t flash
|
||||
return ESP_ERR_NO_MEM;
|
||||
}
|
||||
uint32_t max_image_len;
|
||||
if (__builtin_mul_overflow(max_pages, SPI_FLASH_MMU_PAGE_SIZE, &max_image_len)) {
|
||||
if (__builtin_mul_overflow(max_pages, CONFIG_MMU_PAGE_SIZE, &max_image_len)) {
|
||||
max_image_len = UINT32_MAX;
|
||||
}
|
||||
uint32_t partial_image_len = MIN(len, max_image_len); /* Read the image that fits in the free MMU pages */
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#include "bootloader_flash_priv.h"
|
||||
#include "esp_private/bootloader_flash_internal.h"
|
||||
#include "bootloader_random.h"
|
||||
#include "esp_image_format.h"
|
||||
#include "esp_secure_boot.h"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#include "bootloader_flash_priv.h"
|
||||
#include "esp_private/bootloader_flash_internal.h"
|
||||
#include "bootloader_sha.h"
|
||||
#include "bootloader_sha_flash.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#include "bootloader_flash_priv.h"
|
||||
#include "esp_private/bootloader_flash_internal.h"
|
||||
#include "bootloader_sha.h"
|
||||
#include "bootloader_sha_flash.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_log.h"
|
||||
#include "esp_secure_boot.h"
|
||||
#include "bootloader_flash_priv.h"
|
||||
#include "esp_private/bootloader_flash_internal.h"
|
||||
#include "bootloader_sha.h"
|
||||
#include "bootloader_sha_flash.h"
|
||||
#include "esp_image_format.h"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#include "bootloader_flash_priv.h"
|
||||
#include "esp_private/bootloader_flash_internal.h"
|
||||
#include "bootloader_sha.h"
|
||||
#include "bootloader_sha_flash.h"
|
||||
#include "bootloader_signature.h"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include <string.h>
|
||||
#include "esp_fault.h"
|
||||
#include "bootloader_flash_priv.h"
|
||||
#include "esp_private/bootloader_flash_internal.h"
|
||||
#include "bootloader_sha.h"
|
||||
#include "bootloader_sha_flash.h"
|
||||
#include "bootloader_signature.h"
|
||||
|
||||
Reference in New Issue
Block a user