mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 11:13:34 +08:00
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:
@@ -33,7 +33,6 @@
|
||||
px4_add_module(
|
||||
MODULE lib__controllib
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
blocks.cpp
|
||||
block/Block.cpp
|
||||
@@ -42,4 +41,4 @@ px4_add_module(
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -33,10 +33,9 @@
|
||||
px4_add_module(
|
||||
MODULE lib__conversion
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
rotation.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
-1
Submodule src/lib/ecl updated: df0f8fed45...616aeb9ad7
@@ -33,10 +33,9 @@
|
||||
px4_add_module(
|
||||
MODULE lib__external_lgpl
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
tecs/tecs.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -33,10 +33,9 @@
|
||||
px4_add_module(
|
||||
MODULE lib__geo_lookup
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
geo_mag_declination.c
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -33,11 +33,10 @@
|
||||
px4_add_module(
|
||||
MODULE lib__launchdetection
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
LaunchDetector.cpp
|
||||
CatapultLaunchMethod.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -33,11 +33,10 @@
|
||||
px4_add_module(
|
||||
MODULE lib__mathlib
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
math/test/test.cpp
|
||||
math/Limits.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
px4_add_module(
|
||||
MODULE lib__rc
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
-Wno-unused-result
|
||||
SRCS
|
||||
st24.c
|
||||
@@ -43,4 +42,4 @@ px4_add_module(
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -33,10 +33,9 @@
|
||||
px4_add_module(
|
||||
MODULE lib__runway_takeoff
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
RunwayTakeoff.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -34,10 +34,9 @@ px4_add_module(
|
||||
MODULE lib__tailsitter_recovery
|
||||
STACK_MAIN 400
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
tailsitter_recovery.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -34,10 +34,9 @@ px4_add_module(
|
||||
MODULE lib__terrain_estimation
|
||||
STACK_MAIN 1024
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
terrain_estimator.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
Reference in New Issue
Block a user