Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D2728E00D60; Tue, 12 Nov 2019 08:17:55 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (gholhakiii[at]yahoo.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [74.6.130.121 listed in list.dnswl.org] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from sonic316-11.consmr.mail.bf2.yahoo.com (sonic316-11.consmr.mail.bf2.yahoo.com [74.6.130.121]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 14EEFE00D46 for ; Tue, 12 Nov 2019 08:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1573575474; bh=GX3Dk9yZ365/+RU3diBDiV4JhEACwTRlfaB+j/q3qDU=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=VVUZZXwvpIbzHfxbtjLwsMF4B7buaEuSUsSQWWz373vsPw8E0V3ViOIhXrfzCZpcScxj/Cf3smy+OQUYhIhpm1z6mUt5XP0dwaB74ox4dabN5gcHwGIgeqiqOu2BH9mD2JGsZNzucBQDYFO/dFxOEVnU8lgKoFcXu656kqKeVr4EVHl7n1of8tqPHb9NN4J4LNK74+eRis1R3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6C.QqMsIc2o1V5UgSoHwm_ih52bTuRbIUkZlM8osMEGS4Pr3f9vq5eVT91 Ue49.AOR90bdEwk2YXTndrbanMb.iSM1Gr48.XyVQAHShV1z4yKcXXIBPhJ_GOqhFNkzPm5sYF2n AVReJTJzVOajzdIXbuJWhEiudtA333r4KhImE_moJCD22BOiQGOtFtwND7JXHKFUuHICF70rdn4w 8g4X5hOEOkJo.fobNGwfOwTOA87OJzxghxDA4Woc5Q8vctvx7nDHfQ62YkDMXsYKovWzDw.Dg0Ep xdXzhOnSIjKGW_v0Hh0F4PLlF.fQjN0zRlTCYLAGG8f03UMgCvz2ZLAnTAC9c9bI7IWNWARwmojc V0PDu9PINESE9ZGkersOg6zoYJTKLYPCdNc.GPseK.8xeeIGFmdUNPHkMeddnO47AqhbtW1QEuC2 XdCGMCuO0sE9C0oRmVI2zT34- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.bf2.yahoo.com with HTTP; Tue, 12 Nov 2019 16:17:54 +0000 Date: Tue, 12 Nov 2019 16:17:50 +0000 (UTC) From: "gholhakiii@yahoo.com" To: Yocto discussion list , Paul Barker Message-ID: <1118649944.2067878.1573575470930@mail.yahoo.com> In-Reply-To: <509b816d-82e8-4ca6-ade7-f8f0370f3060@www.fastmail.com> References: <37113658.2021239.1573572818816.ref@mail.yahoo.com> <37113658.2021239.1573572818816@mail.yahoo.com> <509b816d-82e8-4ca6-ade7-f8f0370f3060@www.fastmail.com> MIME-Version: 1.0 X-Mailer: WebService/1.1.14680 YMailNorrin Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Subject: Re: Building only the app and not the Linux core 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: Tue, 12 Nov 2019 16:17:55 -0000 Content-Type: multipart/alternative; boundary="----=_Part_2067877_2000629628.1573575470928" ------=_Part_2067877_2000629628.1573575470928 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Paul, thanks for your help. I did it based on the FreeRTOS. Here is how the result looks like: Under "yocto/build-mb/tmp/work" I have the follwoings: core2-64-poky-linux x86_64-linux and in "core2-64-poky-linux" which I don't where it gets its name, I have my binary:core2-64-poky-linux/microblaze-demo/1.0-r0/test.elf My question now is, how can I avoid hassle of building the x86_64-linux? I just need my test.elf file. BestEm On Tuesday, November 12, 2019, 4:46:51 PM GMT+1, Paul Barker wrote: On Tue, 12 Nov 2019, at 15:33, gholhakiii@yahoo.com wrote: > Hi all, > > I would like to build my yocto project, but only my applications. I > mean, I would like to separate my Linux build and the application build. > I want to just have my meta-layer which contains my application being > build by calling the bitbake command. > Can anyone give me a pointer? Using the multiconfig is the way to do it? > > Best > Em > > P.S. If I want to be more specific, I just want to use Yocto as a > cross-compilation tool for baremetal applications. You could start by looking at how meta-freertos (https://github.com/aehs29/meta-freertos) achieves this. It has support for running the resulting bare-metal app under qemu which you might not need, but the rest of freertos-image.bbclass is probably a good reference. -- Paul Barker ------=_Part_2067877_2000629628.1573575470928 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Paul,

t= hanks for your help. I did it based on the FreeRTOS. Here is how the result= looks like:

Under "yocto/build-mb/tmp/work" I have= the follwoings:
<= br>
core2-64= -poky-linux
<= span>x86_64-linux

an= d in "core2-64-poky-linux" which I d= on't where it gets its name, I have my binary:
core2-64-poky-linux/microblaze-demo/1.0-r0/test.elf


My question now is, how can I avoid hassle of building the x86_64-linux? I just need my test.elf fil= e.

Best
Em

=20
=20
On Tuesday, November 12, 2019, 4:46:51 PM GMT+1, Paul B= arker <paul@betafive.co.uk> wrote:


On Tue, 12 Nov 2019, at 15:33, gholhakiii@yahoo.com wrote:

> Hi all,
> > I would like to build my yocto project, but only my ap= plications. I
> mean, I would like to separate my Lin= ux build and the application build.
> I want to just h= ave my meta-layer which contains my application being
&g= t; build by calling the bitbake command.
> Can anyone = give me a pointer? Using the multiconfig is the way to do it?
>
> Best
> Em
>
> P.S. If I want to be more specific, = I just want to use Yocto as a
> cross-compilation too= l for baremetal applications.


Yo= u could start by looking at how meta-freertos (https://github.com= /aehs29/meta-freertos) achieves this. It has support for running the re= sulting bare-metal app under qemu which you might not need, but the rest of= freertos-image.bbclass is probably a good reference.
--
Paul Barker

------=_Part_2067877_2000629628.1573575470928--