mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 06:03:33 +08:00
cmake: Unbreak all qurt and posix targets
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -2,7 +2,12 @@ include(nuttx/px4_impl_nuttx)
|
|||||||
|
|
||||||
message(WARNING "this is a work in progress and doesn't build yet")
|
message(WARNING "this is a work in progress and doesn't build yet")
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES OUT_FW_OPTS OUT_EXTRA_CMDS
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
platforms/nuttx
|
platforms/nuttx
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
include(posix/px4_impl_posix-arm)
|
include(posix/px4_impl_posix-arm)
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES OUT_FW_OPTS OUT_EXTRA_CMDS
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
include(posix/px4_impl_posix-arm)
|
include(posix/px4_impl_posix-arm)
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES OUT_FW_OPTS OUT_EXTRA_CMDS
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
include(posix/px4_impl_posix-arm)
|
include(posix/px4_impl_posix-arm)
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES OUT_FW_OPTS OUT_EXTRA_CMDS
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
include(posix/px4_impl_posix-arm)
|
include(posix/px4_impl_posix-arm)
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES OUT_FW_OPTS OUT_EXTRA_CMDS
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES
|
||||||
|
REQUIRED OUT_MODULES
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
@@ -26,5 +32,8 @@ function(px4_get_config out_module_list)
|
|||||||
)
|
)
|
||||||
set(${out_module_list} ${config_module_list} PARENT_SCOPE)
|
set(${out_module_list} ${config_module_list} PARENT_SCOPE)
|
||||||
|
|
||||||
|
# output
|
||||||
|
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES
|
||||||
|
REQUIRED OUT_MODULES
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
@@ -60,7 +66,8 @@ function(px4_get_config out_module_list)
|
|||||||
#
|
#
|
||||||
modules/muorb/adsp
|
modules/muorb/adsp
|
||||||
)
|
)
|
||||||
set(${out_module_list} ${config_module_list} PARENT_SCOPE)
|
|
||||||
|
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES
|
||||||
|
REQUIRED
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
@@ -38,7 +44,7 @@ function(px4_get_config out_module_list)
|
|||||||
#
|
#
|
||||||
modules/muorb/adsp
|
modules/muorb/adsp
|
||||||
)
|
)
|
||||||
set(${out_module_list} ${config_module_list} PARENT_SCOPE)
|
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,13 @@ set(target_libraries
|
|||||||
rc_receiver
|
rc_receiver
|
||||||
)
|
)
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES
|
||||||
|
REQUIRED OUT_MODULES
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
#
|
#
|
||||||
@@ -81,6 +87,6 @@ function(px4_get_config out_module_list)
|
|||||||
#
|
#
|
||||||
modules/muorb/adsp
|
modules/muorb/adsp
|
||||||
)
|
)
|
||||||
set(${out_module_list} ${config_module_list} PARENT_SCOPE)
|
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES
|
||||||
|
REQUIRED OUT_MODULES
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
@@ -35,7 +41,7 @@ function(px4_get_config out_module_list)
|
|||||||
platforms/qurt/tests/hrt_test
|
platforms/qurt/tests/hrt_test
|
||||||
platforms/qurt/tests/wqueue
|
platforms/qurt/tests/wqueue
|
||||||
)
|
)
|
||||||
set(${out_module_list} ${config_module_list} PARENT_SCOPE)
|
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,13 @@ include(qurt/px4_impl_qurt)
|
|||||||
# Run a full link with build stubs to make sure qurt target isn't broken
|
# Run a full link with build stubs to make sure qurt target isn't broken
|
||||||
set(QURT_ENABLE_STUBS 1)
|
set(QURT_ENABLE_STUBS 1)
|
||||||
|
|
||||||
function(px4_get_config out_module_list)
|
function(px4_get_config)
|
||||||
|
|
||||||
|
px4_parse_function_args(
|
||||||
|
NAME px4_set_config_modules
|
||||||
|
ONE_VALUE OUT_MODULES
|
||||||
|
REQUIRED OUT_MODULES
|
||||||
|
ARGN ${ARGN})
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
@@ -63,7 +69,7 @@ function(px4_get_config out_module_list)
|
|||||||
#
|
#
|
||||||
modules/muorb/adsp
|
modules/muorb/adsp
|
||||||
)
|
)
|
||||||
set(${out_module_list} ${config_module_list} PARENT_SCOPE)
|
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user