diff --git a/components/efuse/CMakeLists.txt b/components/efuse/CMakeLists.txt index 9a05e7cc14..5fe2cde147 100644 --- a/components/efuse/CMakeLists.txt +++ b/components/efuse/CMakeLists.txt @@ -13,7 +13,7 @@ list(APPEND srcs "src/esp_efuse_utility.c") idf_component_register(SRCS "${srcs}" - PRIV_REQUIRES bootloader_support soc + PRIV_REQUIRES bootloader_support soc spi_flash INCLUDE_DIRS "${include_dirs}") set(GEN_EFUSE_TABLE_ARG --max_blk_len ${CONFIG_EFUSE_MAX_BLK_LEN}) diff --git a/components/esp32/cpu_start.c b/components/esp32/cpu_start.c index b7b35e16f0..4b8c2d5c4b 100644 --- a/components/esp32/cpu_start.c +++ b/components/esp32/cpu_start.c @@ -70,6 +70,7 @@ #include "esp_private/pm_impl.h" #include "trax.h" #include "esp_ota_ops.h" +#include "esp_efuse.h" #define STRINGIFY(s) STRINGIFY2(s) #define STRINGIFY2(s) #s