I am using Freescale P1021 processor in our design, we are using SDK 1.7, I have found all the lib and bin got compiled in Rootfs are Stripped.
Please, let me know the procedure to compile Ustripped image [lib / bin] in Rootfs.
Thanks,
Debugging information is controlled by GCC -g flag:
Debugging Options - Using the GNU Compiler Collection (GCC)
Use CFLAGS_append or CFLAGS_prepend variable to add the flag.
You can probably define these variables in your local.conf to add debug info to everything
in the rootfs, but this will mostly unnecessarily grow your filesystem. You can't debug everything, anyway.
Much better approach is to identify the packages you need to debug and add the variables mentioned above
to their recipes. More information can be found at the links below:
Yocto Project Reference Manual
https://www.yoctoproject.org/docs/1.0/poky-ref-manual/poky-ref-manual.html#what-is-poky
Have a great day,
Platon
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Platon,
Thanks for your response.
Just for Testing, I have added the variable [ CFLAGS_append += " -g " ] in local.conf file under conf/ directory. Then, compiled the minimal fsl image as below,
"bitbake fsl-image-minimal"
Still, I got the stripped binaries and libraries.
** 'nm' command / utility says no symbol found in the library.
Please let me know, If I missed any step.
Thanks,