UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
174 Views
Registered: ‎02-26-2019

How to generate .so with petalinux?

Jump to solution

  I am testing a dma project from guthub https://github.com/bperez77/xilinx_axidma , but I have a problem when I was building the project , as the picture shows

捕获.PNG

 this is a problem about the library ,and I want to know how to compile the library to generate .so file with petalinux , I tried to compile the library with arm-linux-gnueabihf- ,but the peyalinux seems to cannot link the .so wtth arm-linux-gnueabihf . So , do you have ever encounted such problems , and how did you solved such problems? 

0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
142 Views
Registered: ‎10-21-2015

Re: How to generate .so with petalinux?

Jump to solution

Hi 

To create library in petalinux, refer to https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips

I mean you need to make another recipe for library

Then add DEPENDS and RDEPENDS  to your application recipe like this

DEPENDS += "libsample"
RDEPENDS += "libsample"
3 Replies
Explorer
Explorer
143 Views
Registered: ‎10-21-2015

Re: How to generate .so with petalinux?

Jump to solution

Hi 

To create library in petalinux, refer to https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips

I mean you need to make another recipe for library

Then add DEPENDS and RDEPENDS  to your application recipe like this

DEPENDS += "libsample"
RDEPENDS += "libsample"
Moderator
Moderator
124 Views
Registered: ‎09-12-2007

Re: How to generate .so with petalinux?

Jump to solution

The RFDC driver from xilinx is delivered as a .SO file in Linux. You can use this as a reference. See the MakeFile.Linux:

https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/rfdc/src

 

The recipe for this can be seen here:

https://github.com/Xilinx/meta-petalinux/blob/master/recipes-bsp/rfdc/rfdc_git.bb

 

0 Kudos
114 Views
Registered: ‎02-26-2019

Re: How to generate .so with petalinux?

Jump to solution

Thanks for your advice. 

0 Kudos