Re: [yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs
The steps shared by you is telling about customizing the image on existing recipes. But I query is how to add prebuild libraries directly to rootfs. Thanks in Advance. Regards Meena From: Vladimir Redzhepov [vladimir_redzhe...@epam.com] Sent: Friday, July 18, 2014 4:05 PM To: Meenakumari Shedole; yocto@yoctoproject.org; ross.bur...@intel.com Subject: RE: [yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs There're some variables and methods that are responsible for rootfs content. The official documentation is a good place to start Read carefully how to customize image here http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#usingpoky-extend-customimage -Original Message- From: Meenakumari Shedole [mailto:meenakumar...@hcl.com] Sent: Friday, July 18, 2014 1:01 PM To: Vladimir Redzhepov; yocto@yoctoproject.org; ross.bur...@intel.com Subject: RE: [yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs 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_redzhe...@epam.com] Sent: Friday, July 18, 2014 2:28 PM To: Meenakumari Shedole; yocto@yoctoproject.org; ross.bur...@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 '49ilocalRepository${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-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On Behalf Of Meenakumari Shedole Sent: Friday, July 18, 2014 8:55 AM To: yocto@yoctoproject.org; ross.bur...@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@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs
On Thu, Jul 24, 2014 at 11:08 PM, Meenakumari Shedole meenakumar...@hcl.com wrote: The steps shared by you is telling about customizing the image on existing recipes. But I query is how to add prebuild libraries directly to rootfs. Thanks in Advance. even though its a bad idea to package binaries but sometimes you have no choice. You can write a recipe where do_configure and do_compile do nothing and in do_install you would install the binaries into ${D}${bindir} and ${D}${libdir} as appropriate and then create PACKAGES and use FILE_package to bean the files into respective output packages. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs
On Fri, Jul 18, 2014 at 7:55 AM, Meenakumari Shedole meenakumar...@hcl.com wrote: 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. just make a regular recipe as usual. you can add: do_configure[noexec] = 1 do_compile[noexec] = 1 to skip the configure and compile step (or you can make them empty function..) -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
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 '49ilocalRepository${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-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On Behalf Of Meenakumari Shedole Sent: Friday, July 18, 2014 8:55 AM To: yocto@yoctoproject.org; ross.bur...@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@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs
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_redzhe...@epam.com] Sent: Friday, July 18, 2014 2:28 PM To: Meenakumari Shedole; yocto@yoctoproject.org; ross.bur...@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 '49ilocalRepository${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-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On Behalf Of Meenakumari Shedole Sent: Friday, July 18, 2014 8:55 AM To: yocto@yoctoproject.org; ross.bur...@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@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs
There're some variables and methods that are responsible for rootfs content. The official documentation is a good place to start Read carefully how to customize image here http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#usingpoky-extend-customimage -Original Message- From: Meenakumari Shedole [mailto:meenakumar...@hcl.com] Sent: Friday, July 18, 2014 1:01 PM To: Vladimir Redzhepov; yocto@yoctoproject.org; ross.bur...@intel.com Subject: RE: [yocto] Adding prebuilt binaries/libraries to /usr/bin or/usr/lib on rootfs 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_redzhe...@epam.com] Sent: Friday, July 18, 2014 2:28 PM To: Meenakumari Shedole; yocto@yoctoproject.org; ross.bur...@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 '49ilocalRepository${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-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On Behalf Of Meenakumari Shedole Sent: Friday, July 18, 2014 8:55 AM To: yocto@yoctoproject.org; ross.bur...@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@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto