How to compile the (Customize)Rootfs without Stripped

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to compile the (Customize)Rootfs without Stripped

1,536 Views
vevekvenkatesan
Contributor I

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,

Labels (1)
0 Kudos
Reply
2 Replies

1,300 Views
bpe
NXP Employee
NXP Employee

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.6/bitbake-user-manual/bitbake-user-manual.html#appending-and-pre...

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,300 Views
vevekvenkatesan
Contributor I

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,

0 Kudos
Reply