(mpfs-rpmsg-bm) Modified make flow using intermediate static library step produces incomplete elf files #255
-
Introduction The requirement is to modify this make flow to support the use of a static library (libpolarfire.a). The modified make flow uses ar command. Running original make flow The remote version is created by default. For the master version, set the MASTER parameter: Results are stored here: Running modified flow with static library STEP 1: Generate libpolarfire.a Original Makefile in polarfire-soc-amp-examples/mpfs-rpmsg-bm is modified as below: RISCV_TARGET / TARGET is defined in src/boards/icicle-kit-es/Makefile. STEP 2: Compile the demo application using libpolarfire.a Comparing the elf files Why is the elf file generated using the static library incomplete? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Vishakh, This a generic issue of building and using an archive .a library file , It is not related to mpfs-rpmsg-bm. Try using SoftConsole to include pre compiled archive (.a) file via UI. Good thing in eclipse based SoftConsole, you need not write your own Makefile's etc to use any pre-complied object code. Hope this helps !! |
Beta Was this translation helpful? Give feedback.
Hi Vishakh,
This a generic issue of building and using an archive .a library file , It is not related to mpfs-rpmsg-bm.
Try using SoftConsole to include pre compiled archive (.a) file via UI. Good thing in eclipse based SoftConsole, you need not write your own Makefile's etc to use any pre-complied object code.
Hope this helps !!
Thanks
Sanjeev