-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/partition_api_new_component_v5.0' into 'release…
…/v5.0' Storage: Partition APIs moved to the new component 'esp_partition' (v5.0) See merge request espressif/esp-idf!20855
- Loading branch information
Showing
86 changed files
with
436 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
idf_component_register(SRC_DIRS "." | ||
PRIV_INCLUDE_DIRS "." | ||
PRIV_REQUIRES cmock test_utils app_update bootloader_support nvs_flash driver | ||
PRIV_REQUIRES cmock test_utils app_update bootloader_support nvs_flash driver spi_flash | ||
) | ||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
idf_component_register(SRC_DIRS "." | ||
PRIV_INCLUDE_DIRS "${include_dirs}" | ||
PRIV_REQUIRES cmock test_utils esp_hw_support driver efuse esp_timer esp_psram) | ||
PRIV_REQUIRES cmock test_utils esp_hw_support driver efuse esp_timer esp_psram spi_flash) | ||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") | ||
|
||
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u ld_include_test_dport_xt_highint5") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps | ||
|
||
components/esp_partition/host_test/partition_api_test: | ||
enable: | ||
- if: IDF_TARGET == "linux" | ||
reason: only test on linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
set(srcs "partition.c") | ||
set(priv_reqs esp_system bootloader_support spi_flash app_update partition_table) | ||
set(reqs) | ||
set(include_dirs "include") | ||
|
||
idf_build_get_property(target IDF_TARGET) | ||
if(${target} STREQUAL "linux") | ||
list(APPEND srcs "partition_linux.c") | ||
set(priv_reqs partition_table linux) | ||
|
||
# Steal some include directories from bootloader_support and hal components: | ||
idf_component_get_property(hal_dir hal COMPONENT_DIR) | ||
idf_component_get_property(bootloader_support_dir bootloader_support COMPONENT_DIR) | ||
list(APPEND include_dirs include ${hal_dir}/include ${bootloader_support_dir}/include) | ||
else() | ||
list(APPEND srcs "partition_target.c") | ||
endif() | ||
|
||
idf_component_register(SRCS "${srcs}" | ||
INCLUDE_DIRS ${include_dirs} | ||
REQUIRES ${reqs} | ||
PRIV_REQUIRES ${priv_reqs}) | ||
|
||
if(CMAKE_C_COMPILER_ID MATCHES "GNU") | ||
# These flags are GCC specific | ||
set_property(SOURCE ${cache_srcs} APPEND_STRING PROPERTY COMPILE_FLAGS | ||
" -fno-inline-small-functions -fno-inline-functions-called-once") | ||
endif() | ||
|
||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
components/esp_partition/host_test/partition_api_test/main/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
idf_component_register(SRCS "partition_api_test.c" | ||
REQUIRES esp_partition unity) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...est/partition_api_test/sdkconfig.defaults → ...est/partition_api_test/sdkconfig.defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.