mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Reduce the binary size Bebop
The firmware binary is to large to fit into the onboard memory of the Parrot Bebop. It could be uploaded to the emmc, but for ease of use it would be nice to have it in /usr/bin. To strip the binary seems to be the best option right now.
This commit is contained in:
committed by
Lorenz Meier
parent
ffe4c77dc9
commit
ffaed18e67
@@ -678,6 +678,8 @@ function(px4_add_common_flags)
|
||||
message(STATUS "address sanitizer enabled")
|
||||
if ("${OS}" STREQUAL "nuttx")
|
||||
set(max_optimization -Os)
|
||||
elseif (${BOARD} STREQUAL "bebop")
|
||||
set(max_optimization -Os)
|
||||
endif()
|
||||
|
||||
# Do not use optimization_flags (without _) as that is already used.
|
||||
@@ -692,6 +694,8 @@ function(px4_add_common_flags)
|
||||
else()
|
||||
if ("${OS}" STREQUAL "nuttx")
|
||||
set(max_optimization -Os)
|
||||
elseif (${BOARD} STREQUAL "bebop")
|
||||
set(max_optimization -Os)
|
||||
else()
|
||||
set(max_optimization -O2)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user