msg: don't implement print_message for fmu-v2

This saves about 3.4k of flash for fmu-v2.
This commit is contained in:
Julian Oes
2019-10-18 11:54:24 +02:00
committed by Lorenz Meier
parent e9c9fb8239
commit d3da4a92e0
3 changed files with 21 additions and 2 deletions
+6
View File
@@ -177,6 +177,10 @@ foreach(msg_file ${msg_files})
list(APPEND uorb_sources ${msg_source_out_path}/${msg}.cpp)
endforeach()
if (px4_constrained_flash_build)
set(added_arguments --constrained-flash)
endif()
# Generate uORB headers
add_custom_command(OUTPUT ${uorb_headers}
COMMAND ${PYTHON_EXECUTABLE} tools/px_generate_uorb_topic_files.py
@@ -187,6 +191,7 @@ add_custom_command(OUTPUT ${uorb_headers}
-e templates/uorb
-t ${CMAKE_CURRENT_BINARY_DIR}/tmp/headers
-q
${added_arguments}
DEPENDS
${msg_files}
templates/uorb/msg.h.em
@@ -207,6 +212,7 @@ add_custom_command(OUTPUT ${uorb_sources}
-e templates/uorb
-t ${CMAKE_CURRENT_BINARY_DIR}/tmp/sources
-q
${added_arguments}
DEPENDS
${msg_files}
templates/uorb/msg.cpp.em