Return-Path: Received: from sonic305-20.consmr.mail.sg3.yahoo.com (sonic305-20.consmr.mail.sg3.yahoo.com [106.10.241.83]) by mail.openembedded.org (Postfix) with ESMTP id AF6276C5D3 for ; Mon, 26 Nov 2018 12:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1543235063; bh=87GWSh+xE1/gv+0g2d836MDt0fGMInTpreMKq7htFrg=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=aJbolOBA9amlqmfR5eV9BsflXb4oyVDHw0Xs7V0lV2w7hy5H6jRunzVLWE/sbTLW6zw1C7DU/9bQxTwqh34zgW3vQZHaZ1TJ4l9pq+8IT2zKq4stO3/5NcMb/XMBRwmVoBbj1gYjiKX15++aGmVtv8I3st9cqYR0brDggJ8OzBNotj6bT8M6ElJZuA35b274DRx9XMYV/SlhWQotO1dkb3E3ztwkwuY9SVmzftmdiVN+gFSkNiCYvSLPK4+NJ2H2UEqL/tQWAhZ1iVgyWvkHg7/APWfh5VG4Y22tAdxVkHNgBOK/zTzJwL0v+fvMPILP1KrNuKg8TKBgji9StgXzgw== X-YMail-OSG: _yrIOfAVM1mD1FK7HpNcn9i8kyiDfjqvXP8Ayrcms62elE._jNh3r3bytJdMdK3 pgX6OViHWvJJsNjxgaJZ8X64dhS3tcwluqtXT3qQfAkr.vFbTQkMoHEGwvjkusSF2K1iz7NCSccx XdG5CP1gcDCzEB6Amn1gh9Ej0j5VZ3S3XySNout8I4dJx6B3PaBBW82w38PcPPikJ6pwwPFfNK1c XM3JSGwiqMfziewjw1Y7gUN1cU_RtBPNQZb3g5lZVDSj0XWtUTdY5mwc8lIdpK1XrI3KM6cX.FAn P3EpPbBFVeM9XG1T0fVao7bOgN3syMMnaAnF4GLZ4rECvBNoyz7RaP3ygnFxDSlGD3W59TMii_rE p3D32oZQEL2CUH87dHw7AAW_bDOHy2ICYm53648myvxE7elqAs4Ec9WNELqW.OBhaqO_MMH6pUB7 rsfGd_F7y8jmf6T2IRIvEYVafhofL8vthjTlEYw8A4D9I8Pyf860cp__PCWog0Sd2H7_JYMUWEk3 UQWsnx9hsVmi.URIb9tW84sdYXbKB7B7B51iMavXnHziUglNWvBXM5stnWRtEXDY.ycQqL433DYA r78jkz2imFceyeL74WdavIm.Q54cddA9kz4ir9E9Gxr4GieiGttaWluvjeTBtMht8GmVNYr4wXqL mx70rIs3o1xJNfuQ2dkqrRDBWkNXqZZGZ6rOsQrXbQs4WPyjU4ZNZy3m7LRDTzSURQiM.s83W.ec 0MTg0Mkb_aUHLgPyObFn3_kq_8KwIuAMTWNvg7b1_BNEoq8magXSLQSysu_uvJr8glY_uZNOGdFb XVIFgw34esBAFdXQ3QAH4dLiGXX7t7Yx3UFkDrMpgJ.qCgju_WHAfCYywCINtngChxH6ttmNWFhU MbpfdUCQaf1QAOlFnVydXEElLL_CzT_r6Ka0LJMSVDumb87pD2Gn1lw17diwVi5bcgEt4z6E5v8l jfq.AJ7skCOKJjIP1eSeXNvjQPuIkvUrIfrxFKFBPHxPmH360AtHBSRENo3A0c2byBVuArFqZI3t T1qoUK7AaEYN9TzGscj4qXmci.3AwDVow.oxp5H_hdaeUpx7d.a9JqtCh2fN6 Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.sg3.yahoo.com with HTTP; Mon, 26 Nov 2018 12:24:23 +0000 Date: Mon, 26 Nov 2018 12:24:20 +0000 (UTC) From: Ugesh Reddy Reply-To: "kumar.ugesh003@yahoo.com" To: "awais_belal@mentor.com" , Bitbake-devel Message-ID: <1262311103.6017978.1543235060710@mail.yahoo.com> In-Reply-To: <5a9fde61-7134-2abf-4eae-18bb9ba4b8cb@mentor.com> References: <119490492.5831423.1543217793985.ref@mail.yahoo.com> <119490492.5831423.1543217793985@mail.yahoo.com> <5a9fde61-7134-2abf-4eae-18bb9ba4b8cb@mentor.com> MIME-Version: 1.0 X-Mailer: WebService/1.1.12729 YahooMailAndroidMobile YMobile/1.0 (com.yahoo.mobile.client.android.mail/5.34.0; Android/8.1.0; OPM1.171019.011; beryllium; Xiaomi; POCO F1; 5.71; 2116x1080; ) Cc: "Ugesh Munirajulu \(RBEI\\/ECG-EP3\)" Subject: Re: Copying the files to sysroot X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2018 12:24:24 -0000 Content-Type: multipart/alternative; boundary="----=_Part_6017977_254941919.1543235060706" ------=_Part_6017977_254941919.1543235060706 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Awals, If, I am correct the ${D} points to ${WORKDIR}/image Where is the ${includedir} points too? by default it is /usr/ by GNU itsel= f. is it somewhere redefined? Please find the my .bb file DESCRIPTION =3D "First Application" SECTION =3D "MyLayer" LICENSE =3D "MIT" LIC_FILES_CHKSUM =3D "file://${COMMON_LICENSE_DIR}/MIT;md5=3D0835ade698e0b= cf8506ecda2f7b4f302" #LIC_FILES_CHKSUM =3D "file://LICENSE;md5=3Dc00933139e794019cd555c2848de3d= 19" PR =3D "r0" SRC_URI =3D "file://component-0.1.tar.gz" S =3D "${WORKDIR}/recipes-component-0.1/" do_install_append() {=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if [ ! -e $(include= dir)/componentincludes ]; then =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 install -d ${D}${includedir}/co= mponentincludes; =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fi =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 install -m 644 ${S}= /inc/*.h ${D}${includedir}/componentincludes } inherit autotools pkgconfig inherit gettext =C2=A0 local.conf: =C2=A0 ACHINE ??=3D 'imx8mqevk' DISTRO ?=3D 'fsl-imx-wayland' PACKAGE_CLASSES ?=3D "package_rpm" EXTRA_IMAGE_FEATURES ?=3D "debug-tweaks" USER_CLASSES ?=3D "buildstats image-mklibs image-prelink" PATCHRESOLVE =3D "noop" BB_DISKMON_DIRS ??=3D "\ =C2=A0=C2=A0=C2=A0 STOPTASKS,${TMPDIR},1G,100K \ =C2=A0=C2=A0=C2=A0 STOPTASKS,${DL_DIR},1G,100K \ =C2=A0=C2=A0=C2=A0 STOPTASKS,${SSTATE_DIR},1G,100K \ =C2=A0=C2=A0=C2=A0 STOPTASKS,/tmp,100M,100K \ =C2=A0=C2=A0=C2=A0 ABORT,${TMPDIR},100M,1K \ =C2=A0=C2=A0=C2=A0 ABORT,${DL_DIR},100M,1K \ =C2=A0=C2=A0=C2=A0 ABORT,${SSTATE_DIR},100M,1K \ =C2=A0=C2=A0=C2=A0 ABORT,/tmp,10M,1K" PACKAGECONFIG_append_pn-qemu-native =3D " sdl" PACKAGECONFIG_append_pn-nativesdk-qemu =3D " sdl" CONF_VERSION =3D "1" =C2=A0 DL_DIR ?=3D "${BSPDIR}/downloads/" ACCEPT_FSL_EULA =3D "1" =C2=A0 With the above configuration the files are not copied to sysroot/usr/inclu= de/componentincludes On Mon, 26 Nov 2018 at 5:22 PM, Awais Belal wrot= e: Hi Ugesh, =20 >> 1. I want to copy the header includes to sysroot/usr/include/component =20 Simply install the header files to ${D}${includedir}/component at the end = of your 1st recipe's do_install. =20 e.g. =20 mkdir -p ${D}${includedir}/component =20 install -m 0644 /
.h ${D}${includedir}/component/ =20 >> 2. Another recipe shall be able to refer the header from sysroot/usr/in= clude/component =20 Add your 1st recipe's package name in the DEPENDS of the recipe where you = want to utilize these headers. =20 BR, Awais On 26/11/18 12:36, Ugesh Reddy via bitbake-devel wrote: =20 Hello All,=20 =20 I have the yocto bsp for iMx8 eval board and compiled it successfully. I h= ave introduced the new custom layer and written .bb file for my recipe and = the component is compiled successfully and want to install the my include i= n sysroot/usr/include/component at the end. I don't have the clue how to do= that . Could you please some one guide me. =20 =C2=A0 =20 I want the below to be achieved from .bb files. =20 1. I want to copy the header includes to sysroot/usr/include/component =20 2. Another recipe shall be able to refer the header from sysroot/usr/inclu= de/component =20 =20 =20 Regards, =20 Ugesh =20 =20 ------=_Part_6017977_254941919.1543235060706 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hello Awals,

If, I am correct the ${D} points to ${WORKDIR}/im= age

Where is the ${include= dir} points too? by default it is /usr/ by GNU itself. is it somewhere rede= fined?

Please find the my = .bb file

DESCRIPTION =3D "First Application"

SECTION =3D "MyLayer"=

LICEN= SE =3D "MIT"

LIC_FILES_CHKSUM =3D "file://${COMMON_LICENSE_DIR}/MIT;md5=3D= 0835ade698e0bcf8506ecda2f7b4f302"

#LIC_FILES_CHKSUM =3D "file://LICENSE;md= 5=3Dc00933139e794019cd555c2848de3d19"

PR =3D "r0"

SRC_URI =3D "file://component-0.1.tar.gz"

S =3D "${WORKDIR}/recipes-componen= t-0.1/"

do_install_append() {       

&= nbsp;         if [ ! -e $(includedi= r)/componentincludes ]; then

       =              in= stall -d ${D}${includedir}/componentincludes;

    &nbs= p;     fi

       =    install -m 644 ${S}/inc/*.h ${D}${includedir}/componentinclude= s

}

inherit autotools pkgconfig

inherit gettext

 

local.conf:

<= u style=3D"overflow-wrap: break-word;"> 

ACHINE ??=3D 'im= x8mqevk'

DISTRO ?=3D 'fsl-imx-= wayland'

PACKAGE_CLASSES ?=3D = "package_rpm"

EXTRA_IMAGE_FEAT= URES ?=3D "debug-tweaks"

USER_= CLASSES ?=3D "buildstats image-mklibs image-prelink"

PATCHRESOLVE =3D "noop"

BB_DISKMON_DIRS ??=3D "\

    STOPTASKS,${TMPDIR},1G,100K \

    STOPTASKS,${DL_DIR},1G,= 100K \

    STOP= TASKS,${SSTATE_DIR},1G,100K \

    STOPTASKS,/tmp,100M,100K \

    ABORT,${TMPDIR},100M,1K \

    ABORT,${DL_DIR},100M,1K= \

    ABORT,${= SSTATE_DIR},100M,1K \

 &n= bsp;  ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-native =3D " sdl"

PACKAGECONFIG_append_pn-nativesdk-qemu =3D " sdl"<= /u>

CONF_VERSION =3D "1"

 

DL_DIR ?=3D "${BSPDIR}/downloads/"

ACCEPT_FSL_EULA =3D "1"

 

With the above configuration the files are not copied = to sysroot/usr/include/componentincludes



On Mon, 26 Nov= 2018 at 5:22 PM, Awais Belal
<awais_belal@mentor.com> wrot= e:

Hi Ugesh,

>> 1. I want to copy the header includes to sysroot/usr/include/component

Simply install the header files to ${D}${includedir}/component at the end of your 1st recipe's do_install.

e.g.

mkdir -p ${D}${includedir}/component

install -m 0644 <HEADER_LOCATION>/<header>.h ${D}${includedir}/component/

>> 2. Another recipe shall be able to refer the header from sysroot/usr/include/component

Add your 1st recipe's package name in the DEPENDS of the recipe where you want to utilize these headers.

BR,
Awais
On 26/11/18 12:36, Ug= esh Reddy via bitbake-devel wrote:
Hello All,

I have the yocto bsp for iMx8 eval board and compiled it successfully. I have introduced the new custom layer and written .bb file for my recipe and the component is compiled successfully and want to install the my include in sysroot/usr/include/component at the end. I don't have the clue how to do that . Could you please some one guide me.

 

I want the below to be achieved from .bb files.

1. I want to copy the header includes to sysroot/usr/include/component

2. Another recipe shall be able to refer the header from sysroot/usr/include/component


Regards,

Ugesh




------=_Part_6017977_254941919.1543235060706--