From: "chris.larson via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: Cedric Hombourger <cedric.hombourger@siemens.com>,
Christopher Larson <chris.larson@siemens.com>
Subject: [PATCH 0/2] Add support for per-kernel recipe variants
Date: Mon, 7 Apr 2025 09:01:46 -0700 [thread overview]
Message-ID: <20250407160148.443385-1-chris.larson@siemens.com> (raw)
From: Christopher Larson <chris.larson@siemens.com>
Add support for per-kernel recipe variants. This aids in the ability for a
MACHINE to support multiple kernels, by allowing us to generate per-kernel
variants in recipes like external kernel modules.
A new variable KERNEL_NAMES will list the kernels for which variants will be
generated. It defaults to KERNEL_NAME. While this variable lists all supported
kernels for the current machine, a variant will not be generated for
KERNEL_NAME, assuming that's the recipe's baseline. Each variant listed in
KERNEL_NAMES will add kernel-<kernel_name> to the OVERRIDES variable, and
per-kernel:<kernel_name> to the BBCLASSEXTEND variable. In addition,
KERNEL_NAME will be set to the kernel name for the current variant.
In a recipe that already uses KERNEL_NAME and appends it to its PN, all you
need to do to use this is to inherit per-kernel, and add any additional kernels
you want to support to KERNEL_NAMES. The second patch in this series
does so for external kernel modules by default, but this will have no effect
on existing recipes unless KERNEL_NAMES is set to something other than
KERNEL_NAME.
Christopher Larson (2):
per-kernel.bbclass: add class
linux-module: inherit per-kernel
meta/classes/per-kernel.bbclass | 35 +++++++++++++++++++++
meta/recipes-kernel/linux-module/module.inc | 2 +-
2 files changed, 36 insertions(+), 1 deletion(-)
create mode 100644 meta/classes/per-kernel.bbclass
--
2.47.2
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250407160148.443385-1-chris.larson%40siemens.com.
next reply other threads:[~2025-04-07 16:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 16:01 chris.larson via isar-users [this message]
2025-04-07 16:01 ` [PATCH 1/2] per-kernel.bbclass: add class chris.larson via isar-users
2025-04-07 16:01 ` [PATCH 2/2] linux-module: inherit per-kernel chris.larson via isar-users
2025-04-07 19:25 ` 'cedric.hombourger@siemens.com' via isar-users
2025-04-08 8:07 ` 'Florian Bezdeka' via isar-users
2025-04-08 8:13 ` 'cedric.hombourger@siemens.com' via isar-users
2025-04-08 17:12 ` 'Larson, Chris' via isar-users
2025-04-08 8:09 ` [PATCH 0/2] Add support for per-kernel recipe variants 'Florian Bezdeka' via isar-users
2025-04-08 8:18 ` 'cedric.hombourger@siemens.com' via isar-users
2025-04-08 8:29 ` 'Florian Bezdeka' via isar-users
2025-04-08 8:34 ` 'cedric.hombourger@siemens.com' via isar-users
2025-04-08 10:05 ` 'Jan Kiszka' via isar-users
2025-04-08 10:29 ` 'cedric.hombourger@siemens.com' via isar-users
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=20250407160148.443385-1-chris.larson@siemens.com \
--to=isar-users@googlegroups.com \
--cc=cedric.hombourger@siemens.com \
--cc=chris.larson@siemens.com \
/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