All of lore.kernel.org
 help / color / mirror / Atom feed
* Usage of yocto on different (production vs debug) scenarios
@ 2018-04-20  7:59 Iván Castell
  2018-04-20 10:47 ` Uwe Geuder
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Iván Castell @ 2018-04-20  7:59 UTC (permalink / raw)
  To: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 1469 bytes --]

Hello forum.

We are trying to use yocto in a continuous integration environment with
different (production vs debug) scenarios.

To setup a given scenario (production vs debug) we are using something like
this:

    $ SCENARIO=debug
    $ MACHINE=<machine> DISTRO=<distro>-${SCENARIO} source
../../build-<machine>-${SCENARIO}
    $ bitbake <image>-${SCENARIO}

So we have different image recipes:

    * image-production.bb
    * image-debug.bb

Different distros:

    * distro-production.conf
    * distro-debug.conf

And different build directories:

    * build-<machine>-production
    * build-<machine>-debug

To optimize space usage and compilation time, we setup a shared sstate
cache and a shared directory for downloads. This seems a good starting
point.

However, things are getting complicated, because there is no way to exclude
some recipes easily. For example, we don't want iptables installed on the
debug image, but dependency chains include iptables by default even when
declaring IMAGE_INSTALL_remove explicitly. In this case we decided checking
SCENARIO inside iptables_%.bbappend to decide what rules are installed on
the image (rules.production vs rules.debug).

But at the end, this method is poisoning all our recipes with that kind of
ugly controls [...]

Do you think this is the right way to manage this? Can you suggest a
better/more convenient way to deal with this?

Thank you in advance! :)

[-- Attachment #2: Type: text/html, Size: 6887 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-04-25  8:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-20  7:59 Usage of yocto on different (production vs debug) scenarios Iván Castell
2018-04-20 10:47 ` Uwe Geuder
     [not found] ` <5ad9c69c.1a72630a.6af4.6e06SMTPIN_ADDED_BROKEN@mx.google.com>
2018-04-20 12:02   ` Alan Martinovic
     [not found] ` <5ad9c6a8.08aa370a.e3f10.cf1eSMTPIN_ADDED_BROKEN@mx.google.com>
2018-04-20 12:26   ` Uwe Geuder
2018-04-20 13:21 ` Alex Kiernan
     [not found] ` <5ad9c6a5.d806630a.b3470.003fSMTPIN_ADDED_BROKEN@mx.google.com>
2018-04-23 15:10   ` Burton, Ross
2018-04-23 15:23     ` Iván Castell
2018-04-23 15:38       ` Burton, Ross
2018-04-24  6:31         ` Uwe Geuder
2018-04-24  6:45         ` Iván Castell
2018-04-25  8:49           ` Iván Castell

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.