cmake: converted config files to new style

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-09-10 21:52:55 -07:00
parent 31c3f4e40f
commit 885dbe045f
10 changed files with 324 additions and 426 deletions
+1 -13
View File
@@ -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 -13
View File
@@ -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()
+2 -14
View File
@@ -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 -12
View File
@@ -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 -7
View File
@@ -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
View File
@@ -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 -11
View File
@@ -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()
+1 -9
View File
@@ -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 -10
View File
@@ -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()
+1 -10
View File
@@ -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()