Yocto Project Discussions
 help / color / mirror / Atom feed
From: "Aleksandar Nikolic" <an010@live.com>
To: Mike Looijmans <mike.looijmans@topic.nl>,yocto@lists.yoctoproject.org
Subject: Re: [yocto] Multiple images on the same hardware
Date: Wed, 31 Jan 2024 14:07:30 -0800	[thread overview]
Message-ID: <13858.1706738850246565515@lists.yoctoproject.org> (raw)
In-Reply-To: <91dc6c2f-1c7c-4bdb-ab77-f3d63d312451@topic.nl>

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

> 
> Instead of a distro or machine for each combination, it's also possible to
> use a configuration file in the build directory. Your application recipe
> just says "require my-app-config.inc" and then you can provide the
> contents of that file when preparing the build. Makes things easy to
> produce but harder to reproduce...
> 

An interesting approach, didn't occur to me, thanks for the hint.

> 
> The penalty for building things with unneeded features usually isn't that
> big, so it might be worth it if you have systems with and without screen
> to build them all with "x11" or "wayland" in their distro features. Trick
> is to adjust the image recipe so that the headless machine doesn't install
> all the graphic stuff (usually you'll have to take a look at how some
> packagegroups get included and change that).
> 

In this particular case I can use DISTRO_FEATURES in my recipe and nicely use one image recipe to produce multiple images, this is however not possible with e.g. kernel modues, as such variable does not exist.

> 
> Wifi and bluetooth can be compiled as kernel modules and loaded on demand.

Yes, this would work as well. Though some would argue that out of security reasons it's better to reduce the attack surface and not even have kernel modules to be loaded in the first place if they are not needed at all.

Aleksandar

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

  reply	other threads:[~2024-01-31 22:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-25  9:38 Multiple images on the same hardware Aleksandar Nikolic
2024-01-25  9:55 ` [yocto] " Alexander Kanavin
2024-01-25 12:18   ` Aleksandar Nikolic
2024-01-25 14:54     ` Alexander Kanavin
2024-01-25 15:05       ` Aleksandar Nikolic
2024-01-31  7:23       ` Mike Looijmans
2024-01-31 22:07         ` Aleksandar Nikolic [this message]
2024-02-01 13:55           ` Mike Looijmans
2024-02-01 14:11             ` Aleksandar Nikolic

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=13858.1706738850246565515@lists.yoctoproject.org \
    --to=an010@live.com \
    --cc=mike.looijmans@topic.nl \
    --cc=yocto@lists.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox