Unverified Commit 5ffdef43 authored by Ken A. Redergård's avatar Ken A. Redergård Committed by GitHub
Browse files

Add connectivity hex file without SoftDevice to copy step (#180)

* Add unmerged hex files for usb DFU based connectivity firmware to copy step
parent a5fbcdbd
......@@ -178,7 +178,8 @@ function(nrf_create_connectivity_compile_targets)
set(SD_ID)
nrf_extract_softdevice_info("${SOFTDEVICE_HEX_PATH}" SD_VERSION SOC_FAMILY SD_API_VERSION SD_ID)
set(TARGET_NAME "connectivity_${VERSION}_${TRANSPORT}_with_${SD_VERSION}_${SD_API_VERSION}")
set(CONNECTIVITY_NAME "connectivity_${VERSION}_${TRANSPORT}")
set(TARGET_NAME "${CONNECTIVITY_NAME}_with_${SD_VERSION}_${SD_API_VERSION}")
# Check if target name already exists
list(FIND CONNECTIVITY_BUILD_TARGETS "compile_${TARGET_NAME}" FOUND_TARGET)
......@@ -267,6 +268,12 @@ function(nrf_create_connectivity_compile_targets)
OUTPUT "${COMMAND_NAME}"
APPEND COMMAND ${CMAKE_COMMAND} -E copy "${DFU_PKG}" "${OUTPUT_DIRECTORY}"
)
# Copy connectivity hex file to binary make_directory
add_custom_command(
OUTPUT "${COMMAND_NAME}"
APPEND COMMAND ${CMAKE_COMMAND} -E copy "${APP_HEX_PATH}" "${OUTPUT_DIRECTORY}/${CONNECTIVITY_NAME}.hex"
)
endif()
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment