Skip to content

Commit 7db59b2

Browse files
committed
fix: Change wrap triggered only when compressed ota is enabled
1 parent 5e4b981 commit 7db59b2

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

components/bootloader_support_plus/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# ChangeLog
22

3+
## v0.2.2 - 2023-12-12
4+
5+
### Fix:
6+
7+
* Change wrap to be triggered only when the CONFIG_BOOTLOADER_COMPRESSED_ENABLED is enabled.
8+
39
## v0.2.1 - 2023-04-23
410

511
### Fix:

components/bootloader_support_plus/CMakeLists.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ set(srcs "src/bootloader_custom_image_format.c"
66
set(requires "bootloader" "bootloader_support" "spi_flash")
77

88
if(BOOTLOADER_BUILD)
9-
list(APPEND srcs "src/bootloader_custom_malloc.c"
10-
"src/bootloader_decompressor_common.c"
9+
list(APPEND srcs "src/bootloader_custom_malloc.c"
10+
"src/bootloader_decompressor_common.c"
1111
"src/bootloader_storage_flash.c")
1212
else()
1313
list(APPEND requires "app_update" "esp_partition")
@@ -38,7 +38,9 @@ if(BOOTLOADER_BUILD)
3838
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/${CONFIG_IDF_TARGET}/linker.lf")
3939
endif()
4040
else()
41-
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=esp_ota_get_next_update_partition")
41+
if(CONFIG_BOOTLOADER_COMPRESSED_ENABLED)
42+
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=esp_ota_get_next_update_partition")
43+
endif()
4244

4345
# Force app_update to also appear later than bootloader_support_plus in link line
4446
idf_component_get_property(app_update app_update COMPONENT_LIB)
@@ -52,7 +54,9 @@ else()
5254

5355
endif()
5456

55-
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=esp_image_verify")
57+
if(CONFIG_BOOTLOADER_COMPRESSED_ENABLED)
58+
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=esp_image_verify")
59+
endif()
5660

5761
include(package_manager)
58-
cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})
62+
cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})

components/bootloader_support_plus/idf_component.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "0.2.1"
1+
version: "0.2.2"
22
targets:
33
- esp32c2
44
- esp32c3
@@ -13,4 +13,4 @@ dependencies:
1313
cmake_utilities: "0.*"
1414
xz: "1.*"
1515
examples:
16-
- path: ../../examples/ota/simple_ota_example
16+
- path: ../../examples/ota/simple_ota_example

0 commit comments

Comments
 (0)