Fix nordic cmake file
@@ -491,14 +491,6 @@ if(AFR_ENABLE_DEMOS OR AFR_ENABLE_TESTS)
${exe_target}
${application_src}
)
-endif()
-
-if(NOT AFR_METADATA_MODE)
- message(FATAL_ERROR "CMake support for Nordic is not complete yet.")
-endif()
-# -------------------------------------------------------------------------------------------------
-# Additional build configurations
-# -------------------------------------------------------------------------------------------------
set(
mkld_flags
@@ -509,7 +501,6 @@ set(
-section-placement-macros
"FLASH_PH_START=0x0$<SEMICOLON>FLASH_PH_SIZE=0x100000$<SEMICOLON>RAM_PH_START=0x20000000$<SEMICOLON>RAM_PH_SIZE=0x40000$<SEMICOLON>FLASH_START=0x27000$<SEMICOLON>FLASH_SIZE=0xda000$<SEMICOLON>RAM_START=0x200046F8$<SEMICOLON>RAM_SIZE=0x3B908"
)
-
add_custom_command(
TARGET ${exe_target} PRE_LINK
COMMAND VERBATIM "${AFR_COMPILER_DIR}/../../../bin/mkld" ${mkld_flags} "${CMAKE_BINARY_DIR}/${exe_target}.ld"
@@ -534,3 +525,4 @@ add_custom_command(
TARGET ${exe_target} POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy "${output_file}" "${CMAKE_BINARY_DIR}"
)
+endif()
