Remove size optimization for individual modules

It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
This commit is contained in:
Julian Oes
2016-09-30 08:11:51 +02:00
committed by Beat Küng
parent aa6d9e363f
commit 8ff237c69f
145 changed files with 154 additions and 283 deletions
@@ -31,7 +31,7 @@
#
############################################################################
set(TOOLS_ERROR_MSG
set(TOOLS_ERROR_MSG
"The FC_ADDON must be installed and the environment variable FC_ADDON must be set"
"(e.g. export FC_ADDON=${HOME}/Qualcomm/addon)")
@@ -53,7 +53,7 @@ px4_add_module(
MAIN mpu9x50
STACK_MAIN 1200
COMPILE_FLAGS
-Os -Weffc++
-Weffc++
SRCS
mpu9x50_main.cpp
mpu9x50_params.c
@@ -61,10 +61,10 @@ px4_add_module(
platforms__common
)
set(module_external_libraries
set(module_external_libraries
${module_external_libraries}
libmpu9x50
CACHE INTERNAL "module_external_libraries"
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -31,7 +31,7 @@
#
############################################################################
set(TOOLS_ERROR_MSG
set(TOOLS_ERROR_MSG
"The FC_ADDON must be installed and the environment variable FC_ADDON must be set"
"(e.g. export FC_ADDON=${HOME}/Qualcomm/addon)")
@@ -53,7 +53,7 @@ px4_add_module(
MAIN rc_receiver
STACK_MAIN 1200
COMPILE_FLAGS
-Os -Weffc++
-Weffc++
SRCS
rc_receiver_main.cpp
rc_receiver_params.c
@@ -62,10 +62,10 @@ px4_add_module(
platforms__common
)
set(module_external_libraries
set(module_external_libraries
${module_external_libraries}
librc_receiver
CACHE INTERNAL "module_external_libraries"
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -31,7 +31,7 @@
#
############################################################################
set(TOOLS_ERROR_MSG
set(TOOLS_ERROR_MSG
"The FC_ADDON must be installed and the environment variable FC_ADDON must be set"
"(e.g. export FC_ADDON=${HOME}/Qualcomm/addon)")
@@ -53,7 +53,7 @@ px4_add_module(
MAIN uart_esc
STACK_MAIN 1200
COMPILE_FLAGS
-Os -Weffc++
-Weffc++
SRCS
uart_esc_main.cpp
uart_esc_params.c
@@ -62,10 +62,10 @@ px4_add_module(
platforms__common
)
set(module_external_libraries
set(module_external_libraries
${module_external_libraries}
libuart_esc
libuart_esc
CACHE INTERNAL "module_external_libraries"
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
@@ -56,7 +56,6 @@ endif()
px4_add_module(
MODULE platforms__qurt__px4_layer
COMPILE_FLAGS
-Os
SRCS
${QURT_LAYER_SRCS}
${CONFIG_SRC}