[yocto] Building only the app and not the Linux core

gholhakiii at yahoo.com gholhakiii at yahoo.com
Tue Nov 12 08:17:50 PST 2019


 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 <paul at betafive.co.uk> wrote:  
 
 On Tue, 12 Nov 2019, at 15:33, gholhakiii at 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
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20191112/46c11fba/attachment.html>


More information about the yocto mailing list