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:
Michael Schaeuble authored and Lorenz Meier committed 2016-10-18 23:56:56 +02:00
1 parent ffe4c77dc9
commit ffaed18e67
2 files changed
+8

No files matched your search

+4
View File
@@ -33,6 +33,10 @@ sleep 1
adb shell mount -o remount,rw /
adb shell touch /home/root/parameters
${RPI_TOOLCHAIN_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-strip \
-R .comment -R .gnu.version \
../build_posix_bebop_default/src/firmware/posix/px4
../Tools/adb_upload.sh $@
echo "Disconnecting from bebop"
+4
View File
@@ -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()