[yocto] Stripping debug symbols

Mauro Ziliani mauro at faresoftware.it
Thu Apr 11 01:36:58 PDT 2019

Hi all.

I worked on my project woth Krogoth, gcc 5.3.0, on imx6dlsabresd board.

My application is build with cmake 3.4.3, shipped with BSP.

I'd like to strip debug symbols from the final binary, but if I prepend
the strip parameter in CMAKE_{C,CXX}_FLAGS_RELEASE in my CMakeLists.txt,
bitbake give me errors.

What is the right path to follow to strip final binary?

With debug info the binary is 109MB, without 5MB

Best regards,


More information about the yocto mailing list