Skip to content
Snippets Groups Projects
Commit 670fee13 authored by Mark Charlebois's avatar Mark Charlebois
Browse files

Merge branch 'cmake-2' of https://github.com/jgoppert/Firmware into cmake2


Signed-off-by: default avatarMark Charlebois <charlebm@gmail.com>

Conflicts:
	CMakeLists.txt
parents 630328ca 81538749
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ set(package-contact "px4users@googlegroups.com")
#
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
if (EXISTS px4_imple_${OS}_${BOARD})
if (EXISTS px4_impl_${OS}_${BOARD})
include(px4_impl_${OS}_${BOARD})
else()
include(px4_impl_${OS})
......
......@@ -61,10 +61,14 @@ if (${OS} STREQUAL "nuttx")
apps nuttx nosys m gcc
-Wl,--end-group)
px4_nuttx_add_firmware(OUT fw_main.px4 EXE main)
px4_add_upload(OUT upload OS ${OS} BOARD ${BOARD} BUNDLE fw_main.px4)
px4_nuttx_add_firmware(OUT ${CMAKE_CURRENT_BINARY_DIR}/fw_main.px4
EXE ${CMAKE_CURRENT_BINARY_DIR}/main)
px4_nuttx_generate_romfs(OUT romfs.img ROOT ROMFS/px4fmu_common)
px4_add_upload(OUT upload OS ${OS} BOARD ${BOARD}
BUNDLE ${CMAKE_CURRENT_BINARY_DIR}/fw_main.px4)
px4_nuttx_generate_romfs(OUT ${CMAKE_CURRENT_BINARY_DIR}/romfs.img
ROOT ${CMAKE_SOURCE_DIR}/ROMFS/px4fmu_common)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment