How to compile the (Customize)Rootfs without Stripped

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to compile the (Customize)Rootfs without Stripped

1,539 次查看
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,

标签 (1)
0 项奖励
回复
2 回复数

1,303 次查看
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 项奖励
回复

1,303 次查看
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 项奖励
回复