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
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN bl_update
STACK_MAIN 4096
COMPILE_FLAGS
-Os
SRCS
bl_update.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN config
STACK_MAIN 4096
COMPILE_FLAGS
-Os
SRCS
config.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -34,10 +34,9 @@ px4_add_module(
MODULE systemcmds__dumpfile
MAIN dumpfile
COMPILE_FLAGS
-Os
SRCS
dumpfile.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN esc_calib
STACK_MAIN 4096
COMPILE_FLAGS
-Os
SRCS
esc_calib.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -34,10 +34,9 @@ px4_add_module(
MODULE systemcmds__i2c
MAIN i2c
COMPILE_FLAGS
-Os
SRCS
i2c.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+2 -3
View File
@@ -30,17 +30,16 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
set(MIXER_CFLAGS -Os)
px4_add_module(
MODULE systemcmds__mixer
MAIN mixer
STACK_MAIN 4096
STACK_MAX 2100
COMPILE_FLAGS ${MIXER_CFLAGS}
COMPILE_FLAGS
SRCS
mixer.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN motor_test
STACK_MAIN 4096
COMPILE_FLAGS
-Os
SRCS
motor_test.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -34,11 +34,10 @@ px4_add_module(
MODULE systemcmds__mtd
MAIN mtd
COMPILE_FLAGS
-Os
SRCS
mtd.c
24xxxx_mtd.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -36,10 +36,9 @@ px4_add_module(
PRIORITY "SCHED_PRIORITY_DEFAULT-30"
STACK_MAIN 1500
COMPILE_FLAGS
-Os
SRCS
nshterm.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN param
STACK_MAIN 2500
COMPILE_FLAGS
-Os
SRCS
param.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN perf
STACK_MAIN 1800
COMPILE_FLAGS
-Os
SRCS
perf.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN pwm
STACK_MAIN 2400
COMPILE_FLAGS
-Os
SRCS
pwm.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN reboot
STACK_MAIN 800
COMPILE_FLAGS
-Os
SRCS
reboot.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -34,10 +34,9 @@ px4_add_module(
MODULE systemcmds__reflect
MAIN reflect
COMPILE_FLAGS
-Os
SRCS
reflect.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN sd_bench
STACK_MAIN 2500
COMPILE_FLAGS
-Os
SRCS
sd_bench.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
-1
View File
@@ -82,7 +82,6 @@ px4_add_module(
-Wno-missing-declarations
-Wno-double-promotion
-Wno-unknown-warning-option
-Os
SRCS ${srcs}
DEPENDS
platforms__common
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN top
STACK_MAIN 1700
COMPILE_FLAGS
-Os
SRCS
top.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -46,11 +46,10 @@ px4_add_module(
MAIN listener
STACK_MAIN 1800
COMPILE_FLAGS
-Os
SRCS
topic_listener.cpp
DEPENDS
platforms__common
generate_topic_listener
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -34,10 +34,9 @@ px4_add_module(
MODULE systemcmds__usb_connected
MAIN usb_connected
COMPILE_FLAGS
-Os
SRCS
usb_connected.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN ver
STACK_MAIN 1024
COMPILE_FLAGS
-Os
SRCS
ver.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :