mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 08:41:35 +08:00
cmake: converted config files to new style
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -1,14 +1,6 @@
|
|||||||
include(posix/px4_impl_posix)
|
include(posix/px4_impl_posix)
|
||||||
|
|
||||||
set(USE_TOOLCHAIN Toolchain-arm-linux-gnueabihf)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-arm-linux-gnueabihf.cmake)
|
||||||
|
|
||||||
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
|
||||||
@@ -50,7 +42,3 @@ function(px4_get_config)
|
|||||||
platforms/posix/work_queue
|
platforms/posix/work_queue
|
||||||
)
|
)
|
||||||
|
|
||||||
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
|
||||||
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
include(posix/px4_impl_posix)
|
include(posix/px4_impl_posix)
|
||||||
|
|
||||||
set(USE_TOOLCHAIN Toolchain-arm-linux-gnueabihf)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-arm-linux-gnueabihf.cmake)
|
||||||
|
|
||||||
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
|
||||||
@@ -39,7 +31,3 @@ function(px4_get_config)
|
|||||||
modules/muorb/krait
|
modules/muorb/krait
|
||||||
)
|
)
|
||||||
|
|
||||||
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
|
||||||
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
include(posix/px4_impl_posix-arm)
|
include(posix/px4_impl_posix)
|
||||||
|
|
||||||
set(USE_TOOLCHAIN Toolchain-arm-linux-gnueabihf)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-arm-linux-gnueabihf.cmake)
|
||||||
|
|
||||||
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
|
||||||
@@ -21,7 +13,3 @@ function(px4_get_config)
|
|||||||
modules/muorb/krait
|
modules/muorb/krait
|
||||||
)
|
)
|
||||||
|
|
||||||
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
|
||||||
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,6 @@
|
|||||||
include(posix/px4_impl_posix)
|
include(posix/px4_impl_posix)
|
||||||
|
|
||||||
set(USE_TOOLCHAIN Toolchain-arm-linux-gnueabihf)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-arm-linux-gnueabihf.cmake)
|
||||||
|
|
||||||
function(px4_get_config)
|
|
||||||
|
|
||||||
px4_parse_function_args(
|
|
||||||
NAME px4_set_config_modules
|
|
||||||
ONE_VALUE OUT_MODULES
|
|
||||||
ARGN ${ARGN})
|
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
drivers/device
|
drivers/device
|
||||||
@@ -33,7 +26,3 @@ function(px4_get_config)
|
|||||||
modules/muorb/krait
|
modules/muorb/krait
|
||||||
)
|
)
|
||||||
|
|
||||||
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
|
||||||
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
function(px4_get_config)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon.cmake)
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
set(USE_TOOLCHAIN Toolchain-hexagon)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon.cmake)
|
||||||
|
|
||||||
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
|
||||||
@@ -68,8 +60,3 @@ function(px4_get_config)
|
|||||||
#
|
#
|
||||||
modules/muorb/adsp
|
modules/muorb/adsp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
|
||||||
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
function(px4_get_config)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon.cmake)
|
||||||
|
|
||||||
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
|
||||||
@@ -44,7 +38,3 @@ function(px4_get_config)
|
|||||||
#
|
#
|
||||||
modules/muorb/adsp
|
modules/muorb/adsp
|
||||||
)
|
)
|
||||||
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
|
||||||
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,13 +19,8 @@ set(target_libraries
|
|||||||
rc_receiver
|
rc_receiver
|
||||||
)
|
)
|
||||||
|
|
||||||
function(px4_get_config)
|
|
||||||
|
|
||||||
px4_parse_function_args(
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon.cmake)
|
||||||
NAME px4_set_config_modules
|
|
||||||
ONE_VALUE OUT_MODULES
|
|
||||||
REQUIRED OUT_MODULES
|
|
||||||
ARGN ${ARGN})
|
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
#
|
#
|
||||||
@@ -87,6 +82,3 @@ function(px4_get_config)
|
|||||||
#
|
#
|
||||||
modules/muorb/adsp
|
modules/muorb/adsp
|
||||||
)
|
)
|
||||||
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
|
||||||
|
|
||||||
endfunction()
|
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
function(px4_get_config)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon.cmake)
|
||||||
|
|
||||||
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
|
||||||
@@ -41,7 +35,4 @@ function(px4_get_config)
|
|||||||
platforms/qurt/tests/hrt_test
|
platforms/qurt/tests/hrt_test
|
||||||
platforms/qurt/tests/wqueue
|
platforms/qurt/tests/wqueue
|
||||||
)
|
)
|
||||||
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
|
||||||
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,13 +3,7 @@ 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)
|
set(CMAKE_TOOLCHAIN_FILE cmake/toolchains/Toolchain-hexagon.cmake)
|
||||||
|
|
||||||
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
|
||||||
@@ -69,7 +63,4 @@ function(px4_get_config)
|
|||||||
#
|
#
|
||||||
modules/muorb/adsp
|
modules/muorb/adsp
|
||||||
)
|
)
|
||||||
set(${OUT_MODULES} ${config_module_list} PARENT_SCOPE)
|
|
||||||
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user