diff --git a/components/esp_psram/CMakeLists.txt b/components/esp_psram/CMakeLists.txt index 9083aca444..a9693334d4 100644 --- a/components/esp_psram/CMakeLists.txt +++ b/components/esp_psram/CMakeLists.txt @@ -8,6 +8,7 @@ set(includes "include") set(priv_requires heap spi_flash esp_mm) if(${target} STREQUAL "esp32") + list(APPEND priv_requires bootloader_support) # [refactor-todo]: requires "driver" for `spicommon_periph_claim` list(APPEND priv_requires driver) endif() diff --git a/components/esp_system/CMakeLists.txt b/components/esp_system/CMakeLists.txt index 80dca0e81d..eac1a98ced 100644 --- a/components/esp_system/CMakeLists.txt +++ b/components/esp_system/CMakeLists.txt @@ -67,8 +67,7 @@ else() # [refactor-todo] requirements due to init code, # should be removable once using component init functions # link-time registration is used. - esp_pm - REQUIRES bootloader_support + bootloader_support esp_pm LDFRAGMENTS "linker.lf" "app.lf") add_subdirectory(port) diff --git a/components/esp_system/port/image_process.c b/components/esp_system/port/image_process.c index d4ff4ed8d0..2f795bf765 100644 --- a/components/esp_system/port/image_process.c +++ b/components/esp_system/port/image_process.c @@ -44,6 +44,24 @@ #define MMU_FLASH_MASK (~(CONFIG_MMU_PAGE_SIZE - 1)) +/** + * @brief Image process driver + */ +struct image_process_driver_s { + + /** + * @brief Process segments + * + * @param[in] data image meta data + * + * @return + * - ESP_OK + * - ESP_ERR_INVALID_ARG: invalid argument + * - ESP_ERR_INVALID_STATE: invalid state + */ + esp_err_t (*process_segments)(esp_image_metadata_t *data); +}; + const static char *TAG = "image_process"; static uint32_t s_current_read_mapping = UINT32_MAX; diff --git a/components/esp_system/port/include/private/esp_private/image_process.h b/components/esp_system/port/include/private/esp_private/image_process.h index 809055a682..e68bd82899 100644 --- a/components/esp_system/port/include/private/esp_private/image_process.h +++ b/components/esp_system/port/include/private/esp_private/image_process.h @@ -10,7 +10,6 @@ #include #include #include "esp_err.h" -#include "esp_image_format.h" #ifdef __cplusplus extern "C" { @@ -21,24 +20,6 @@ extern "C" { */ typedef struct image_process_driver_s image_process_driver_t; -/** - * @brief Image process driver - */ -struct image_process_driver_s { - - /** - * @brief Process segments - * - * @param[in] data image meta data - * - * @return - * - ESP_OK - * - ESP_ERR_INVALID_ARG: invalid argument - * - ESP_ERR_INVALID_STATE: invalid state - */ - esp_err_t (*process_segments)(esp_image_metadata_t *data); -}; - /** * @brief Image process flow * @note This API first reads the image header, then process the segments from the image header.