From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D6C3BE00E14; Wed, 1 Jun 2016 00:13:27 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FSL_HELO_HOME, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,WEIRD_PORT autolearn=no version=3.3.1 X-Spam-HAM-Report: * 1.0 FSL_HELO_HOME FSL_HELO_HOME * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [80.91.229.3 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 07B78E00DD8 for ; Wed, 1 Jun 2016 00:13:25 -0700 (PDT) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b80LC-0004LS-KU for yocto@yoctoproject.org; Wed, 01 Jun 2016 09:13:22 +0200 Received: from ppp-2-86-141-113.home.otenet.gr ([2.86.141.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jun 2016 09:13:22 +0200 Received: from gmane by ppp-2-86-141-113.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jun 2016 09:13:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: yocto@yoctoproject.org From: Robert Berger Date: Wed, 01 Jun 2016 10:13:00 +0300 Message-ID: <574E8AFC.9060207@reliableembeddedsystems.com> References: Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-2-86-141-113.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: Subject: Re: How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto? X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2016 07:13:27 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Hi, On 05/31/2016 06:03 PM, S.Jaritz@esa-grimma.de wrote:> Hej, > > I am looking for an example where is shown how to include an own library > into the toolchain. > > Let's call the library "myLib". For it I created an recipe "myLib.bb" > and added: > > BBCLASSEXTEND = "native nativesdk" Like this you can build a myLib-native (for your host - x86) version and it should be added as an x86 library to your nativesdk. see: http://www.yoctoproject.org/docs/2.1/mega-manual/mega-manual.html#var-BBCLASSEXTEND > > In my "local.conf" I added: > > IMAGE_INSTALL_append = " myLib" > > When building the SDK by: > > $ bitbake myTarget -c populate_sdk > > It produces a installer for the SDK and two manifest files. "myLib" is > only included at the target manifest and not on the host. How can I > include myLib on the host system? Do you want myLib-native? > > The idea is, that a other person can build software on his system > without the Yocto system. Only by using the toolchain he can generate > binaries, which can be transferred and executed at the evalboard. I guess you want something else. You want e.g. the ARM library myLib in your sysroot plus maybe header files. What happens if you create a recipe like a testcase for your library which DEPENDS_append = " myLib" and then you IMAGE_INSTALL_append = " myLib testmyLib", rebuild the image and populate_sdk? > > > Regards! Regards, Robert > > PS: I put the question on stackoverflow: > http://stackoverflow.com/questions/37548851/how-to-include-a-own-libary-into-the-toolchainsdk-for-an-embeeded-linux-genera > > > > ------------------------------------------------------------ > ESA Elektroschaltanlagen Grimma GmbH > Broner Ring 30 > 04668 Grimma > Telefon: +49 3437 9211 176 > Telefax: +49 3437 9211 26 > E-Mail: s.jaritz@esa-grimma.de > Internet: www.esa-grimma.de > > > Geschäftsführer: > Dipl.-Ing. Jörg Gaitzsch > Jörg Reinker > > Sitz der Gesellschaft: Grimma > Ust.-ID: DE 141784437 > Amtsgericht: Leipzig, HRB 5159 > Steuernummer: 238/108/00755 > > > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte > Informationen. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich > erhalten > haben, informieren Sie bitte sofort den Absender und löschen Sie diese > Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser > Mail > ist nicht gestattet. > > This e-mail may contain confidential and/or privileged information. If > you are > not the intended recipient (or have received this e-mail in error) please > notify the sender immediately and destroy this e-mail. Any unauthorized > copying, disclosure or distribution of the material in this e-mail is > strictly > forbidden. > > > -- > ...To go faster, slow down. Everybody who knows about orbital mechanics understands that.- Scott Cherf My public pgp key is available,at: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1