Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Move bootloader build after metadata mode check (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanmr94 committed Oct 22, 2019
1 parent eccfdb4 commit deb858b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vendors/nordic/boards/nrf52840-dk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,6 @@ else()
set(exe_target aws_demos)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/bootloader.cmake")

# Do not add demos or tests if they're turned off.
if(AFR_ENABLE_DEMOS OR AFR_ENABLE_TESTS)

Expand Down Expand Up @@ -522,7 +520,7 @@ if(AFR_ENABLE_DEMOS OR AFR_ENABLE_TESTS)
find_program(gcc_size arm-none-eabi-size)

if(NOT gcc_objectcopy )
message(FATAL_ERROR "Cannot find arm-none-eabi-objcopy.")
message(FATAL_ERROR "Cannot find objcopy.")
endif()

set(output_file "$<TARGET_FILE_DIR:${build_target}>/${build_target}.hex")
Expand All @@ -540,6 +538,12 @@ if(AFR_ENABLE_DEMOS OR AFR_ENABLE_TESTS)

endfunction()

if (AFR_METADATA_MODE)
return()
endif()

include("${CMAKE_CURRENT_LIST_DIR}/bootloader.cmake")

nrf52840_build(
bootloader
bootloader_mkld_flags
Expand Down

0 comments on commit deb858b

Please sign in to comment.