[yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs

Meenakumari Shedole meenakumari.s at hcl.com
Fri Jul 18 03:00:33 PDT 2014


Thanks for your response.

But if I have few different packages like "usb" "BT" "Qt" and only these packages bin and libraries if I want to add to yocto rootfs ?

Regards
Meena
________________________________________
From: Vladimir Redzhepov [Vladimir_Redzhepov at epam.com]
Sent: Friday, July 18, 2014 2:28 PM
To: Meenakumari Shedole; yocto at yoctoproject.org; ross.burton at intel.com
Subject: RE: [yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs

Hi

You should look closely at meta-oracle-java layer if want to add some binaries to the target rootfs. On the other hand if you want to use binaries within the build process they should be put down in the places poky could find them.

There's an example how to use a binary apache-maven within build process

DESCRIPTION = "Maven is a software project management and comprehension tool. Based on the concept \
of a Project Object Model (POM), Maven can manage a project's build, reporting and documentation \
from a central piece of information."
HOMEPAGE = "http://maven.apache.org"
SECTION = "devel"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=9af13b2d31a47f71518aa5dde47fc025"

SRC_URI = "http://ftp.byfly.by/pub/apache.org/maven/maven-3/${PV}/binaries/${BP}-bin.zip"

SRC_URI[md5sum] = "5d86506f17e5ff0b0c83c648f4093abb"
SRC_URI[sha256sum] = "df3338233b34f6d65ec3901fc0039f72ba59ff1380d09eebc5b58916b5fea2a3"

do_configure() {
    sed -i '49i<localRepository>${STAGING_DATADIR_NATIVE}/maven-repository</localRepository>' ${S}/conf/settings.xml
}

do_install() {
    install -d -m 0755 ${D}${bindir}/${PN}
    cp -ar * ${D}${bindir}/${PN}
    ln -sf ${PN}/bin/mvn ${D}${bindir}/mvn
}

BBCLASSEXTEND = "native"


-----Original Message-----
From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Meenakumari Shedole
Sent: Friday, July 18, 2014 8:55 AM
To: yocto at yoctoproject.org; ross.burton at intel.com
Subject: [yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs

Hi all.

I have few prebuilt binaries and libraries, and I want to add them to the yocto build rootfs at the
build itself.
So Can any one please tell me the steps to add recipes or suggest me any other method for this.

Thnaks in Advance.

Regards
Meena


::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.

----------------------------------------------------------------------------------------------------------------------------------------------------

--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list