public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support for per-kernel recipe variants
@ 2025-04-07 16:01 chris.larson via isar-users
  2025-04-07 16:01 ` [PATCH 1/2] per-kernel.bbclass: add class chris.larson via isar-users
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: chris.larson via isar-users @ 2025-04-07 16:01 UTC (permalink / raw)
  To: isar-users; +Cc: Cedric Hombourger, Christopher Larson

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.

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

end of thread, other threads:[~2025-04-08 17:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-07 16:01 [PATCH 0/2] Add support for per-kernel recipe variants chris.larson via isar-users
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox