kopia lustrzana https://github.com/espressif/esp-idf
tools: setting components to main to reduce build time
rodzic
03c5274368
commit
620cc586a2
|
@ -3,6 +3,7 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(test_build)
|
||||
|
||||
add_custom_target(check_bootloader_sections ALL
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(cxx_no_except)
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(cpp_pthread)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
idf_component_register(SRCS "cpp_pthread.cpp"
|
||||
INCLUDE_DIRS ".")
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES pthread bt)
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(eh_frame)
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(gdb)
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(gdb_loadable_elf)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
idf_component_register(SRCS "hello_world_main.c"
|
||||
INCLUDE_DIRS "")
|
||||
INCLUDE_DIRS ""
|
||||
PRIV_REQUIRES vfs spi_flash)
|
||||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(longjmp_test)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
idf_component_register(SRCS "hello_world_main.c"
|
||||
INCLUDE_DIRS "")
|
||||
INCLUDE_DIRS ""
|
||||
PRIV_REQUIRES esp_timer spi_flash)
|
||||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
||||
|
|
|
@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 3.16)
|
|||
|
||||
if((IDF_TARGET STREQUAL "esp32s2") OR (IDF_TARGET STREQUAL "esp32c3") OR (IDF_TARGET STREQUAL "esp32s3"))
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(test_memprot)
|
||||
|
||||
target_link_libraries(${project_elf} PRIVATE
|
||||
"-Wl,--wrap=esp_panic_handler"
|
||||
"-Wl,--wrap=esp_panic_handler_reconfigure_wdts"
|
||||
"-Wl,--wrap=esp_cpu_stall")
|
||||
|
||||
endif()
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(monitor_addr_lookup)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main esp_gdbstub espcoredump)
|
||||
project(panic)
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(no_embedded_paths)
|
||||
|
||||
idf_build_get_property(idf_path IDF_PATH)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
idf_component_register(SRCS "test_no_embedded_paths_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES bt)
|
||||
|
|
|
@ -13,4 +13,5 @@ endif()
|
|||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS "include"
|
||||
REQUIRES spi_flash esp_psram esp_system esp_partition)
|
||||
REQUIRES spi_flash esp_psram esp_system esp_partition
|
||||
PRIV_REQUIRES esp_gdbstub)
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(ram_loadable_app)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
idf_component_register(SRCS "ram_loadable_app_test.c"
|
||||
INCLUDE_DIRS "")
|
||||
INCLUDE_DIRS ""
|
||||
PRIV_REQUIRES unity spi_flash)
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
CONFIG_APP_BUILD_TYPE_RAM=y
|
||||
|
||||
# Save size
|
||||
CONFIG_VFS_SUPPORT_IO=n
|
||||
|
||||
# Reset is meaningless to ram_app
|
||||
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
CONFIG_APP_BUILD_TYPE_RAM=y
|
||||
|
||||
# Save size
|
||||
CONFIG_VFS_SUPPORT_TERMIOS=n
|
||||
|
||||
# Reset is meaningless to ram_app
|
||||
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
|
||||
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(test_startup)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
idf_component_register(SRCS "test_startup_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES vfs)
|
||||
|
||||
if(CONFIG_SINGLE_CORE_VARIANT)
|
||||
target_sources(${COMPONENT_LIB} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/chip_info_patch.c")
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(test_unicore_bootloader)
|
||||
|
|
Ładowanie…
Reference in New Issue