We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a824a1 commit 1727627Copy full SHA for 1727627
tools/export/cmake/CMakeLists.txt.tmpl
@@ -71,6 +71,16 @@ add_custom_command(TARGET {{name}} POST_BUILD
71
COMMAND ${CMAKE_COMMAND} -E echo "-- built: $<TARGET_FILE:{{name}}>.hex"
72
)
73
74
+{% if hex_files %}
75
+add_custom_command(TARGET {{name}} POST_BUILD
76
+ COMMAND ${SREC_CAT}
77
+ {% for f in hex_files %}${CMAKE_CURRENT_SOURCE_DIR}/{{f}} {% endfor %}
78
+ -intel $<TARGET_FILE:{{name}}>.hex
79
+ -intel -o $<TARGET_FILE:{{name}}>-combined.hex -intel --line-length=44
80
+ COMMAND ${CMAKE_COMMAND} -E echo "-- built: $<TARGET_FILE:{{name}}>-combined.hex"
81
+ )
82
+{% endif %}
83
+
84
85
##########################################################################
86
# mbed-cli specific targets
0 commit comments