diff --git a/components/app_trace/test/CMakeLists.txt b/components/app_trace/test/CMakeLists.txt index f2df0fd7cc..dc24ac276d 100644 --- a/components/app_trace/test/CMakeLists.txt +++ b/components/app_trace/test/CMakeLists.txt @@ -1,3 +1,3 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." - PRIV_REQUIRES cmock) + PRIV_REQUIRES cmock driver) diff --git a/components/app_update/CMakeLists.txt b/components/app_update/CMakeLists.txt index 2fcd57b434..e6329224e6 100644 --- a/components/app_update/CMakeLists.txt +++ b/components/app_update/CMakeLists.txt @@ -2,7 +2,7 @@ idf_component_register(SRCS "esp_ota_ops.c" "esp_app_desc.c" INCLUDE_DIRS "include" REQUIRES spi_flash partition_table bootloader_support - PRIV_REQUIRES esptool_py) + PRIV_REQUIRES esptool_py efuse) # esp_app_desc structure is added as an undefined symbol because otherwise the # linker will ignore this structure as it has no other files depending on it. diff --git a/components/app_update/esp_ota_ops.c b/components/app_update/esp_ota_ops.c index ed2368fa74..b834702d86 100644 --- a/components/app_update/esp_ota_ops.c +++ b/components/app_update/esp_ota_ops.c @@ -11,8 +11,6 @@ #include #include #include -#include -#include #include "esp_err.h" #include "esp_partition.h" diff --git a/components/console/CMakeLists.txt b/components/console/CMakeLists.txt index f7bdeef25a..6fddca7f61 100644 --- a/components/console/CMakeLists.txt +++ b/components/console/CMakeLists.txt @@ -4,4 +4,5 @@ idf_component_register(SRCS "commands.c" "argtable3/argtable3.c" "linenoise/linenoise.c" INCLUDE_DIRS "." - REQUIRES vfs) + REQUIRES vfs + PRIV_REQUIRES driver) diff --git a/components/esp32/CMakeLists.txt b/components/esp32/CMakeLists.txt index 26cf178354..d92d8c60ea 100644 --- a/components/esp32/CMakeLists.txt +++ b/components/esp32/CMakeLists.txt @@ -3,29 +3,20 @@ if(NOT "${target}" STREQUAL "esp32") return() endif() -idf_build_get_property(sdkconfig_header SDKCONFIG_HEADER) +if(NOT BOOTLOADER_BUILD) + # [refactor-todo] propagate these requirements for compatibility + # remove in the future + set(legacy_reqs driver efuse soc) +endif() -if(BOOTLOADER_BUILD) - # For bootloader, all we need from esp32 is headers - idf_component_register(INCLUDE_DIRS include REQUIRES xtensa) - target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32.peripherals.ld") -else() - # Regular app build - set(include_dirs "include") +idf_component_register(INCLUDE_DIRS include + REQUIRES xtensa "${legacy_reqs}" + REQUIRED_IDF_TARGETS esp32) - set(requires driver efuse soc xtensa) #unfortunately rom/uart uses SOC registers directly - - # app_update is added here because cpu_start.c uses esp_ota_get_app_description() function. - # esp_timer is added here because cpu_start.c uses esp_timer - set(priv_requires app_trace app_update bootloader_support esp_system log mbedtls nvs_flash pthread - spi_flash vfs espcoredump esp_common perfmon esp_timer esp_ipc esp_pm) - - idf_component_register(SRCS "${srcs}" - INCLUDE_DIRS "${include_dirs}" - REQUIRES "${requires}" - PRIV_REQUIRES "${priv_requires}" - REQUIRED_IDF_TARGETS esp32) +target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32.peripherals.ld") +if(NOT BOOTLOADER_BUILD) + idf_build_get_property(sdkconfig_header SDKCONFIG_HEADER) target_linker_script(${COMPONENT_LIB} INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/esp32_out.ld") # Process the template file through the linker script generation mechanism, and use the output for linking the @@ -34,8 +25,6 @@ else() PROCESS "${CMAKE_CURRENT_BINARY_DIR}/ld/esp32.project.ld") target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32.peripherals.ld") - target_link_libraries(${COMPONENT_LIB} INTERFACE gcc) - target_link_libraries(${COMPONENT_LIB} INTERFACE "-u call_user_start_cpu0") idf_build_get_property(config_dir CONFIG_DIR) # Preprocess esp32.ld linker script to include configuration, becomes esp32_out.ld @@ -50,5 +39,4 @@ else() add_custom_target(esp32_linker_script DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/esp32_out.ld) add_dependencies(${COMPONENT_LIB} esp32_linker_script) - endif() diff --git a/components/esp32/Makefile.projbuild b/components/esp32/Makefile.projbuild index 1c82617738..a38caa46f9 100644 --- a/components/esp32/Makefile.projbuild +++ b/components/esp32/Makefile.projbuild @@ -1,7 +1,3 @@ -# Enable dynamic esp_timer overflow value if building unit tests -ifneq ("$(filter esp32,$(TEST_COMPONENTS_LIST))","") -CPPFLAGS += -DESP_TIMER_DYNAMIC_OVERFLOW_VAL -endif ESP32_LINKER_SCRIPT_TEMPLATE := $(COMPONENT_PATH)/ld/esp32.project.ld.in ESP32_LINKER_SCRIPT_OUTPUT_DIR := $(realpath $(BUILD_DIR_BASE)/esp32) diff --git a/components/esp32c3/CMakeLists.txt b/components/esp32c3/CMakeLists.txt index 91b5c84222..72e19a9e49 100644 --- a/components/esp32c3/CMakeLists.txt +++ b/components/esp32c3/CMakeLists.txt @@ -1,34 +1,21 @@ idf_build_get_property(target IDF_TARGET) -idf_build_get_property(sdkconfig_header SDKCONFIG_HEADER) if(NOT "${target}" STREQUAL "esp32c3") return() endif() -if(BOOTLOADER_BUILD) - # For bootloader, all we need from esp32c3 is headers - idf_component_register(INCLUDE_DIRS include REQUIRES riscv) - target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32c3.peripherals.ld") -else() - # Regular app build +if(NOT BOOTLOADER_BUILD) + # [refactor-todo] propagate these requirements for compatibility + # remove in the future + set(legacy_reqs driver efuse soc) +endif() - set(srcs) - set(include_dirs "include") +idf_component_register(INCLUDE_DIRS include + REQUIRES riscv "${legacy_reqs}" + REQUIRED_IDF_TARGETS esp32c3) - set(requires driver efuse soc riscv) #unfortunately rom/uart uses SOC registers directly - - # driver is a public requirement because esp_sleep.h uses gpio_num_t & touch_pad_t - # app_update is added here because cpu_start.c uses esp_ota_get_app_description() function. - # esp_timer is added here because cpu_start.c uses esp_timer - set(priv_requires - app_trace app_update bootloader_support log mbedtls nvs_flash - pthread spi_flash vfs espcoredump esp_common esp_timer) - - idf_component_register(SRCS "${srcs}" - INCLUDE_DIRS "${include_dirs}" - REQUIRES "${requires}" - PRIV_REQUIRES "${priv_requires}" - REQUIRED_IDF_TARGETS esp32c3) +target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32c3.peripherals.ld") +if(NOT BOOTLOADER_BUILD) target_linker_script(${COMPONENT_LIB} INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/esp32c3_out.ld") # Process the template file through the linker script generation mechanism, and use the output for linking the @@ -36,8 +23,6 @@ else() target_linker_script(${COMPONENT_LIB} INTERFACE "${CMAKE_CURRENT_LIST_DIR}/ld/esp32c3.project.ld.in" PROCESS "${CMAKE_CURRENT_BINARY_DIR}/ld/esp32c3.project.ld") target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32c3.peripherals.ld") - target_link_libraries(${COMPONENT_LIB} INTERFACE gcc) - target_link_libraries(${COMPONENT_LIB} INTERFACE "-u call_user_start_cpu0") idf_build_get_property(config_dir CONFIG_DIR) # Preprocess esp32c3.ld linker script to include configuration, becomes esp32c3_out.ld @@ -52,10 +37,4 @@ else() add_custom_target(esp32c3_linker_script DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/esp32c3_out.ld) add_dependencies(${COMPONENT_LIB} esp32c3_linker_script) - - # disable stack protection in files which are involved in initialization of that feature - set_source_files_properties( - cpu_start.c - PROPERTIES COMPILE_FLAGS - -fno-stack-protector) endif() diff --git a/components/esp32s2/CMakeLists.txt b/components/esp32s2/CMakeLists.txt index b4eb259028..7d5dc8b896 100644 --- a/components/esp32s2/CMakeLists.txt +++ b/components/esp32s2/CMakeLists.txt @@ -1,32 +1,22 @@ idf_build_get_property(target IDF_TARGET) -idf_build_get_property(sdkconfig_header SDKCONFIG_HEADER) if(NOT "${target}" STREQUAL "esp32s2") return() endif() -if(BOOTLOADER_BUILD) - # For bootloader, all we need from esp32s2 is headers - idf_component_register(INCLUDE_DIRS include REQUIRES xtensa) - target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32s2.peripherals.ld") -else() - # Regular app build +if(NOT BOOTLOADER_BUILD) + # [refactor-todo] propagate these requirements for compatibility + # remove in the future + set(legacy_reqs driver efuse soc) +endif() - set(include_dirs "include") +idf_component_register(INCLUDE_DIRS include + REQUIRES xtensa "${legacy_reqs}" + REQUIRED_IDF_TARGETS esp32s2) - set(requires driver efuse xtensa) - - # app_update is added here because cpu_start.c uses esp_ota_get_app_description() function. - # esp_timer is added here because cpu_start.c uses esp_timer - set(priv_requires - app_trace app_update bootloader_support esp_system log mbedtls nvs_flash - pthread spi_flash vfs espcoredump esp_common esp_timer) - - idf_component_register(SRCS "${srcs}" - INCLUDE_DIRS "${include_dirs}" - REQUIRES "${requires}" - PRIV_REQUIRES "${priv_requires}" - REQUIRED_IDF_TARGETS esp32s2) +target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32s2.peripherals.ld") +if(NOT BOOTLOADER_BUILD) + idf_build_get_property(sdkconfig_header SDKCONFIG_HEADER) target_linker_script(${COMPONENT_LIB} INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/esp32s2_out.ld") # Process the template file through the linker script generation mechanism, and use the output for linking the @@ -36,8 +26,6 @@ else() PROCESS "${CMAKE_CURRENT_BINARY_DIR}/ld/esp32s2.project.ld") target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32s2.peripherals.ld") - target_link_libraries(${COMPONENT_LIB} INTERFACE gcc) - target_link_libraries(${COMPONENT_LIB} INTERFACE "-u call_user_start_cpu0") idf_build_get_property(config_dir CONFIG_DIR) # Preprocess esp32s2.ld linker script to include configuration, becomes esp32s2_out.ld diff --git a/components/esp32s3/CMakeLists.txt b/components/esp32s3/CMakeLists.txt index 1c35a62bf0..e5f908dd94 100644 --- a/components/esp32s3/CMakeLists.txt +++ b/components/esp32s3/CMakeLists.txt @@ -1,32 +1,22 @@ idf_build_get_property(target IDF_TARGET) -idf_build_get_property(sdkconfig_header SDKCONFIG_HEADER) - if(NOT "${target}" STREQUAL "esp32s3") return() endif() -if(BOOTLOADER_BUILD) - # For bootloader, all we need from esp32s3 is headers - idf_component_register(INCLUDE_DIRS include REQUIRES xtensa) - target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32s3.peripherals.ld") -else() - # Regular app build - set(include_dirs "include") +if(NOT BOOTLOADER_BUILD) + # [refactor-todo] propagate these requirements for compatibility + # remove in the future + set(legacy_reqs driver efuse soc) +endif() - set(requires driver efuse soc xtensa) #unfortunately rom/uart uses SOC registers directly +idf_component_register(INCLUDE_DIRS include + REQUIRES xtensa "${legacy_reqs}" + REQUIRED_IDF_TARGETS esp32s3) - # driver is a public requirement because esp_sleep.h uses gpio_num_t & touch_pad_t - # app_update is added here because cpu_start.c uses esp_ota_get_app_description() function. - # esp_timer is added here because cpu_start.c uses esp_timer - set(priv_requires app_trace app_update bootloader_support log mbedtls nvs_flash pthread - spi_flash vfs espcoredump esp_common perfmon esp_timer esp_ipc) - - idf_component_register(SRCS "${srcs}" - INCLUDE_DIRS "${include_dirs}" - REQUIRES "${requires}" - PRIV_REQUIRES "${priv_requires}" - REQUIRED_IDF_TARGETS esp32s3) +target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32s3.peripherals.ld") +if(NOT BOOTLOADER_BUILD) + idf_build_get_property(sdkconfig_header SDKCONFIG_HEADER) target_linker_script(${COMPONENT_LIB} INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/esp32s3_out.ld") # Process the template file through the linker script generation mechanism, and use the output for linking the @@ -35,8 +25,6 @@ else() PROCESS "${CMAKE_CURRENT_BINARY_DIR}/ld/esp32s3.project.ld") target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32s3.peripherals.ld") - target_link_libraries(${COMPONENT_LIB} INTERFACE gcc) - target_link_libraries(${COMPONENT_LIB} INTERFACE "-u call_user_start_cpu0") idf_build_get_property(config_dir CONFIG_DIR) # Preprocess esp32s3.ld linker script to include configuration, becomes esp32s3_out.ld @@ -51,10 +39,4 @@ else() add_custom_target(esp32s3_linker_script DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/esp32s3_out.ld) add_dependencies(${COMPONENT_LIB} esp32s3_linker_script) - - # disable stack protection in files which are involved in initialization of that feature - set_source_files_properties( - cpu_start.c - PROPERTIES COMPILE_FLAGS - -fno-stack-protector) endif() diff --git a/components/esp_hw_support/CMakeLists.txt b/components/esp_hw_support/CMakeLists.txt index e29aa2f143..a142d030e0 100644 --- a/components/esp_hw_support/CMakeLists.txt +++ b/components/esp_hw_support/CMakeLists.txt @@ -2,6 +2,7 @@ idf_build_get_property(target IDF_TARGET) set(priv_requires efuse) set(requires soc) +set(priv_requires efuse bootloader_support spi_flash) if(${target} STREQUAL "esp32") list(APPEND requires efuse) endif() @@ -28,7 +29,7 @@ idf_component_register(SRCS ${srcs} INCLUDE_DIRS include include/soc include/soc/${target} PRIV_INCLUDE_DIRS port/include REQUIRES ${requires} - PRIV_REQUIRES ${priv_requires} + PRIV_REQUIRES "${priv_requires}" LDFRAGMENTS linker.lf) idf_build_get_property(target IDF_TARGET) diff --git a/components/esp_hw_support/test/CMakeLists.txt b/components/esp_hw_support/test/CMakeLists.txt index 9e246cfaaa..bc0b3bc550 100644 --- a/components/esp_hw_support/test/CMakeLists.txt +++ b/components/esp_hw_support/test/CMakeLists.txt @@ -1,3 +1,3 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "${include_dirs}" - PRIV_REQUIRES cmock test_utils esp_hw_support) + PRIV_REQUIRES cmock test_utils esp_hw_support driver efuse) diff --git a/components/esp_pm/CMakeLists.txt b/components/esp_pm/CMakeLists.txt index b802986ec1..5c68058e97 100644 --- a/components/esp_pm/CMakeLists.txt +++ b/components/esp_pm/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "pm_locks.c" "pm_trace.c" "pm_impl.c" INCLUDE_DIRS include + PRIV_REQUIRES esp_system driver LDFRAGMENTS linker.lf) diff --git a/components/esp_ringbuf/test/CMakeLists.txt b/components/esp_ringbuf/test/CMakeLists.txt index ed052cc07f..8014c0498c 100644 --- a/components/esp_ringbuf/test/CMakeLists.txt +++ b/components/esp_ringbuf/test/CMakeLists.txt @@ -1,3 +1,3 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." - PRIV_REQUIRES cmock test_utils) + PRIV_REQUIRES cmock test_utils esp_ringbuf driver) diff --git a/components/esp_system/CMakeLists.txt b/components/esp_system/CMakeLists.txt index fcc0d458f3..424b95b2e5 100644 --- a/components/esp_system/CMakeLists.txt +++ b/components/esp_system/CMakeLists.txt @@ -38,7 +38,7 @@ else() # should be removable once using component init functions # link-time registration is used. esp_pm app_update nvs_flash pthread app_trace esp_gdbstub - espcoredump esp_phy + espcoredump esp_phy efuse LDFRAGMENTS "linker.lf" "app.lf") add_subdirectory(port) diff --git a/components/esp_system/test/CMakeLists.txt b/components/esp_system/test/CMakeLists.txt index 3229228ad3..6dfdf703ae 100644 --- a/components/esp_system/test/CMakeLists.txt +++ b/components/esp_system/test/CMakeLists.txt @@ -1,3 +1,3 @@ idf_component_register(SRC_DIRS . PRIV_INCLUDE_DIRS . - PRIV_REQUIRES unity test_utils) + PRIV_REQUIRES unity test_utils driver) diff --git a/components/freertos/CMakeLists.txt b/components/freertos/CMakeLists.txt index 632e63cbe1..a91ad72674 100644 --- a/components/freertos/CMakeLists.txt +++ b/components/freertos/CMakeLists.txt @@ -69,7 +69,7 @@ idf_component_register(SRCS "${srcs}" PRIV_INCLUDE_DIRS ${private_include_dirs} LDFRAGMENTS linker.lf REQUIRES ${required_components} - PRIV_REQUIRES soc) + PRIV_REQUIRES soc esp_pm) idf_component_get_property(COMPONENT_DIR freertos COMPONENT_DIR) idf_component_set_property(freertos ORIG_INCLUDE_PATH "${COMPONENT_DIR}/include/freertos/") diff --git a/components/freertos/test/CMakeLists.txt b/components/freertos/test/CMakeLists.txt index fe5e7e2b29..12d6eed56c 100644 --- a/components/freertos/test/CMakeLists.txt +++ b/components/freertos/test/CMakeLists.txt @@ -1,4 +1,3 @@ idf_component_register(SRC_DIRS . PRIV_INCLUDE_DIRS . - PRIV_REQUIRES cmock test_utils esp_ipc - ) + PRIV_REQUIRES cmock test_utils esp_ipc driver) diff --git a/components/hal/CMakeLists.txt b/components/hal/CMakeLists.txt index e7a87605b0..b298d44ae8 100644 --- a/components/hal/CMakeLists.txt +++ b/components/hal/CMakeLists.txt @@ -118,6 +118,7 @@ idf_component_register(SRCS ${srcs} INCLUDE_DIRS ${includes} PRIV_INCLUDE_DIRS ${priv_include} REQUIRES soc + PRIV_REQUIRES ${target} LDFRAGMENTS linker.lf) if(CONFIG_HAL_DEFAULT_ASSERTION_LEVEL EQUAL 1) diff --git a/components/mbedtls/CMakeLists.txt b/components/mbedtls/CMakeLists.txt index e7a26f0ff3..7ea847fdab 100644 --- a/components/mbedtls/CMakeLists.txt +++ b/components/mbedtls/CMakeLists.txt @@ -1,10 +1,16 @@ idf_build_get_property(idf_target IDF_TARGET) idf_build_get_property(python PYTHON) +set(priv_requires soc esp_hw_support) + +if(NOT BOOTLOADER_BUILD) + list(APPEND priv_requires esp_pm) +endif() + idf_component_register(SRCS "esp_crt_bundle/esp_crt_bundle.c" INCLUDE_DIRS "port/include" "mbedtls/include" "esp_crt_bundle/include" REQUIRES lwip - PRIV_REQUIRES esp_pm soc + PRIV_REQUIRES "${priv_requires}" ) if(CONFIG_MBEDTLS_CERTIFICATE_BUNDLE) @@ -183,6 +189,8 @@ if(CONFIG_MBEDTLS_HARDWARE_MPI) endif() set_property(TARGET mbedcrypto APPEND PROPERTY LINK_INTERFACE_LIBRARIES mbedtls) +set_property(TARGET mbedcrypto APPEND PROPERTY LINK_LIBRARIES idf::driver idf::${target}) +set_property(TARGET mbedcrypto APPEND PROPERTY INTERFACE_LINK_LIBRARIES idf::driver idf::${target}) # Link mbedtls libraries to component library target_link_libraries(${COMPONENT_LIB} PUBLIC ${mbedtls_targets}) diff --git a/components/newlib/test/CMakeLists.txt b/components/newlib/test/CMakeLists.txt index ed052cc07f..1300b7e02b 100644 --- a/components/newlib/test/CMakeLists.txt +++ b/components/newlib/test/CMakeLists.txt @@ -1,3 +1,3 @@ idf_component_register(SRC_DIRS "." PRIV_INCLUDE_DIRS "." - PRIV_REQUIRES cmock test_utils) + PRIV_REQUIRES cmock test_utils driver) diff --git a/components/spi_flash/CMakeLists.txt b/components/spi_flash/CMakeLists.txt index d7e9f1634f..573c6698eb 100644 --- a/components/spi_flash/CMakeLists.txt +++ b/components/spi_flash/CMakeLists.txt @@ -105,7 +105,7 @@ else() "spi_flash_os_func_noos.c") list(APPEND srcs ${cache_srcs}) - set(priv_requires bootloader_support app_update soc esp_ipc) + set(priv_requires bootloader_support app_update soc esp_ipc driver) endif() idf_component_register(SRCS "${srcs}" diff --git a/components/spi_flash/test/CMakeLists.txt b/components/spi_flash/test/CMakeLists.txt index 75be8a44c9..d3deebf4fa 100644 --- a/components/spi_flash/test/CMakeLists.txt +++ b/components/spi_flash/test/CMakeLists.txt @@ -5,4 +5,4 @@ endif() idf_component_register(SRC_DIRS "." EXCLUDE_SRCS "${exclude_srcs}" PRIV_INCLUDE_DIRS "." - PRIV_REQUIRES cmock test_utils spi_flash bootloader_support app_update) + PRIV_REQUIRES cmock test_utils spi_flash bootloader_support app_update driver) diff --git a/components/ulp/test/CMakeLists.txt b/components/ulp/test/CMakeLists.txt index d800757fd2..d4a231f314 100644 --- a/components/ulp/test/CMakeLists.txt +++ b/components/ulp/test/CMakeLists.txt @@ -3,7 +3,7 @@ if(IDF_TARGET STREQUAL "esp32s3") endif() idf_component_register(SRC_DIRS ${IDF_TARGET} PRIV_INCLUDE_DIRS . -PRIV_REQUIRES cmock ulp soc esp_common) +PRIV_REQUIRES cmock ulp soc esp_common driver) if(IDF_TARGET STREQUAL "esp32") set(ulp_sources "ulp/test_jumps_esp32.S") diff --git a/components/usb/CMakeLists.txt b/components/usb/CMakeLists.txt index ea23fc0e07..0145f81e2a 100644 --- a/components/usb/CMakeLists.txt +++ b/components/usb/CMakeLists.txt @@ -7,4 +7,5 @@ endif() idf_component_register(SRCS "hcd.c" INCLUDE_DIRS "" - PRIV_INCLUDE_DIRS "private_include") + PRIV_INCLUDE_DIRS "private_include" + PRIV_REQUIRES hal driver) diff --git a/components/vfs/CMakeLists.txt b/components/vfs/CMakeLists.txt index 5f78214121..d49ebcf8ac 100644 --- a/components/vfs/CMakeLists.txt +++ b/components/vfs/CMakeLists.txt @@ -2,7 +2,8 @@ idf_component_register(SRCS "vfs.c" "vfs_eventfd.c" "vfs_uart.c" "vfs_semihost.c" - INCLUDE_DIRS include) + INCLUDE_DIRS include + PRIV_REQUIRES driver) if(CONFIG_ESP_CONSOLE_USB_CDC) target_sources(${COMPONENT_LIB} PRIVATE "vfs_cdcacm.c") diff --git a/make/project.mk b/make/project.mk index 0aae810805..96692537cb 100644 --- a/make/project.mk +++ b/make/project.mk @@ -354,7 +354,6 @@ IDF_VER := $(shell echo "$(IDF_VER_T)" | cut -c 1-31) # Set default LDFLAGS EXTRA_LDFLAGS ?= LDFLAGS ?= -nostdlib \ - -u call_user_start_cpu0 \ $(EXTRA_LDFLAGS) \ -Wl,--gc-sections \ -Wl,-static \ diff --git a/tools/unit-test-app/components/test_utils/CMakeLists.txt b/tools/unit-test-app/components/test_utils/CMakeLists.txt index a950bfa82d..50e9fa6de1 100644 --- a/tools/unit-test-app/components/test_utils/CMakeLists.txt +++ b/tools/unit-test-app/components/test_utils/CMakeLists.txt @@ -20,4 +20,4 @@ idf_component_register(SRCS ${srcs} INCLUDE_DIRS include PRIV_INCLUDE_DIRS private_include REQUIRES spi_flash idf_test cmock - PRIV_REQUIRES perfmon esp_ipc) + PRIV_REQUIRES perfmon esp_ipc driver)