[yocto] Recipe to copy precompiled binaries to root image

Sathish Kumar Balasubramaniam -ERS, HCL Tech b-sathishkumar at hcl.com
Mon Jul 7 00:45:37 PDT 2014


Hi Josh,

Try adding the following to your myrecipe.bb

FILES_${PN} += "${libdir} /etc"
FILES_${PN}-dbg += "${libdir}/.debug /etc/.debug"
FILES_SOLIBSDEV = ""

Note:
Try following if any issue
FILES_${PN}-dbg += "${libdir}/.debug"

Regards,
B.Sathish Kumar

From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Joshua Collins
Sent: Friday, July 04, 2014 1:08 PM
To: yocto at yoctoproject.org
Subject: [yocto] Recipe to copy precompiled binaries to root image

I have some precompiled libraries that I want to copy to my root image after it has been built. I am building the fsl-image-gui image.

I have created my own layer and recipe, with a file structure:

meta-mylayer ->
                meta-myrecipe ->
                                myrecipie ->
                                                myrecipe.bb
                                                files ->
                                                                myLib1.so
                                                                myLib2.so
                                                                myScript

I have added my layer to bblayers.conf and added IMAGE_INSTALL_append = " myrecipe" to local.conf.

My recipe looks like this:

-------------------------------------------------------------------------------
DESCRIPTION = "Copies files to the image"
LICENSE = "CLOSED"
PN = 'arcontia'
PV = '0.0.1'

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://myLib1.so  file://myLib2.so file://myScript <file:///\\myLib1.so %20file:\myLib2.so%20file:\myScript%20> "

S = "${WORKDIR}"

do_install() {
  install -d ${D}${libdir}
  install -m 755 myLib1.so ${D}${libdir}
  install -m 755 myLib2.so ${D}${libdir}

  install -d ${D}/etc
  install -m 755 myScript ${D}/etc
}
-------------------------------------------------------------------------------

This does not copy the files to the image as I would expect. If I look at the bitbake log, I see my recipe is run, but I obviously have not done the right thing in the recipe.

Can anyone tell me how I could fix this?

Cheers,
Josh


::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140707/f2daba7d/attachment.html>


More information about the yocto mailing list