Skip to content

Commit

Permalink
bootloader: Allow 'silent assert' config to work in bootloader
Browse files Browse the repository at this point in the history
Requires adding the 'newlib' component to the bootloader project, for
platform_include header.
  • Loading branch information
projectgus committed Apr 2, 2021
1 parent e5437af commit bf6ddf2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/bootloader/subproject/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ set(COMPONENTS
micro-ecc
main
efuse
esp_system)
esp_system
newlib)
set(BOOTLOADER_BUILD 1)
include("${IDF_PATH}/tools/cmake/project.cmake")
set(common_req log esp_rom esp_common esp_hw_support hal)
set(common_req log esp_rom esp_common esp_hw_support hal newlib)
if(LEGACY_INCLUDE_COMMON_HEADERS)
list(APPEND common_req soc hal)
endif()
Expand Down
6 changes: 6 additions & 0 deletions components/newlib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
if(BOOTLOADER_BUILD)
# Bootloader builds need the platform_include directory (for assert.h), but nothing else
idf_component_register(INCLUDE_DIRS platform_include)
return()
endif()

set(srcs
"abort.c"
"heap.c"
Expand Down

0 comments on commit bf6ddf2

Please sign in to comment.