Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by mail.openembedded.org (Postfix) with ESMTP id ED2826C474 for ; Mon, 26 Nov 2018 11:52:15 +0000 (UTC) Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-03.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gRFR1-0004EL-Iq from Awais_Belal@mentor.com ; Mon, 26 Nov 2018 03:52:15 -0800 Received: from [137.202.156.92] (137.202.0.90) by SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 26 Nov 2018 11:52:11 +0000 To: "kumar.ugesh003@yahoo.com" , Bitbake-devel References: <119490492.5831423.1543217793985.ref@mail.yahoo.com> <119490492.5831423.1543217793985@mail.yahoo.com> From: Awais Belal Message-ID: <5a9fde61-7134-2abf-4eae-18bb9ba4b8cb@mentor.com> Date: Mon, 26 Nov 2018 16:52:10 +0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <119490492.5831423.1543217793985@mail.yahoo.com> X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-05.mgc.mentorg.com (139.181.222.5) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) 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 11:52:16 -0000 Content-Type: multipart/alternative; boundary="------------6BE6DCAC21171A55395E2502" Content-Language: en-US --------------6BE6DCAC21171A55395E2502 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit 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 /
.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, Ugesh 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 > > > --------------6BE6DCAC21171A55395E2502 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit

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, Ugesh 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




--------------6BE6DCAC21171A55395E2502--