cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
peterjo
Newbie
Newbie
3,184 Views
Registered: ‎06-08-2017

Petalinux 2017.1 - libgcc_s.so.1

In Petalinux 2017.1: How do I include libgcc_s.so.1 in rootfs?

0 Kudos
3 Replies
bitblit11
Adventurer
Adventurer
3,014 Views
Registered: ‎06-13-2017

I would really like to see an answer to this question too.  I found posts that indicate this was an option at least in Petalinux 2014, in an "Advanced" options menu in petalinux-config -c rootfs.  I can't find it in 2017.

0 Kudos
shabbirk
Moderator
Moderator
2,991 Views
Registered: ‎12-04-2016

Hi 

 

Here are the steps to Include Prebuilt Modules/libraries in rootfs:

1.  petalinux-create -t apps --template install --name mymodule --enable

2.  cd project-spec/meta-user/recipes-apps/mymodule/files

3. copy the library file (*.so) here

4.  Edit mymodule.bb file, the file should look like the following:

SRC_URI = "file://library.so \ "

inherit module-base

S = "${WORKDIR}"

do_install() {

install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra

install -m 0755 ${S}/library.so ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra/

}

FILES_${PN} = "${base_libdir}/modules/"

 

5. Run petalinux-build

0 Kudos
mgillott
Observer
Observer
2,632 Views
Registered: ‎06-11-2014

Thanks this is exactly what I need. One question

 

where do I find a version of libgcc_s.so.1 precompiled for the Zynq ?

 

Regards

 

Malcolm

 

0 Kudos