All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Johannes Wiesböck" <johannes.wiesboeck@tum.de>
To: yocto@yoctoproject.org
Subject: [help] Multiconfig - Depending on Recipe multiple times
Date: Thu, 29 Aug 2019 17:05:35 +0200	[thread overview]
Message-ID: <20190829150535.2w2nir4bia4ze6ez@asterix> (raw)
In-Reply-To: <20190829144815.62iqd6tnf6qot74m@asterix>

Hello Everyone,

i am using Yocto on the thud branch to build images for a real-time
operating system based on FreeRTOS. I would like to run multiple images
on different CPU cores in an asynchronous multi-processing (AMP) configuration.
Each image will contain the software for only one single core. For
deployment, i would like to pack all images into one package.

Therefore, i would like to use multiconfig to build the same recipe four
times for the same hardware but with different compiler options,
determined by to core the image should run on. These builds are all based on
the same source code but differ in compiler options used for building. After
the images for all configurations are built, i would like to pack all images
into a single package for deployment.

I have created two recipes, one called amp-image, that should be built
once for every multiconfig. A second recipe called master-image,
depends on amp-image for every configuration, i.e. i have the line

do_compile[mcdepends] = "multiconfig:amp-c0:amp-c0:amp-image:do_build multiconfig:amp-c0:amp-c1:amp-image:do_build"

in my master-image.bb file. I also have set up my multiconfigs according
to [0].

When i try to build master-image with 

bitbake multiconfig:amp-c0:master-image

i get an error, which i have attached in [1].

My question is: Is it generally possible for a recipe to depend on one
recipe multiple times but from a different multiconfig, like shown above?
Also, if possible, are the sysroots of the dependencies automatically
populated to the recipe depending on them, like with the usual DEPENDS
variable.


Thanks for any help!
Johannes Wiesboeck

[0] https://www.yoctoproject.org/docs/2.6/dev-manual/dev-manual.html#dev-building-images-for-multiple-targets-using-multiple-configurations
[1] https://home.in.tum.de/~wiesboec/bitbake.txt


       reply	other threads:[~2019-08-29 15:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190829143056.cvo7vk7tpghfjnyh@asterix>
     [not found] ` <20190829144027.whr2vf5lwnhoh4vk@asterix>
     [not found]   ` <20190829144815.62iqd6tnf6qot74m@asterix>
2019-08-29 15:05     ` Johannes Wiesböck [this message]
2019-08-29 16:01       ` [help] Multiconfig - Depending on Recipe multiple times Mark Hatle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190829150535.2w2nir4bia4ze6ez@asterix \
    --to=johannes.wiesboeck@tum.de \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.