Skip to content
Snippets Groups Projects
Commit ffaed18e authored by Michael Schaeuble's avatar Michael Schaeuble Committed by Lorenz Meier
Browse files

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.
parent ffe4c77d
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment