How to compile the (Customize)Rootfs without Stripped

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to compile the (Customize)Rootfs without Stripped

1,559件の閲覧回数
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,323件の閲覧回数
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,323件の閲覧回数
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 件の賞賛
返信