Work around permission issue in marvell
@@ -259,7 +259,13 @@ target_link_libraries(
)
# Convert afx file to bin file
+if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Linux")
set(axf2fw "${mw320_dir}/sdk/tools/bin/Linux/axf2firmware")
+ execute_process(COMMAND chmod +x "${axf2fw}") # TODO, workaround for Amazon FreeRTOS console permission issue.
+else()
+ message(FATAL_ERROR "Only Linux host is supported for marvell.")
+endif()
+
add_custom_command(
TARGET ${exe_target} POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E remove "${exe_target}.bin"
