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

From: Christopher Larson <chris.larson@siemens.com>

Add support for generation of per-kernel recipe variants. This aids in the
ability for a MACHINE to support multiple kernels, by allowing us to generate
per-kernel packages in recipes like external kernel modules. Enable this
support by default for external kernel modules.

A new variable KERNEL_NAMES will list the kernels for which variants will be
generated. For any kernels listed other than KERNEL_NAME, a variant of the
recipe will be produced, to generate a package or packages for that kernel.
In each variant, the KERNEL_NAME variable will be set to the kernel name for
which the variant is being built, and the `kernel-<kernel_name>` override
will be added, allowing for further metadata customization on a per-kernel
basis.

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.

A new test is added to verify that the per-kernel support works as expected.

No documentation for the per-kernel class is added, as it's already being enabled
for external kernel modules, which is the main use case, and no other optional
bbclasses are being documented in the user manual today.

Christopher Larson (4):
  per-kernel.bbclass: add class
  linux-module: inherit per-kernel
  testsuite: add 'extra_lines' argument to configure
  testsuite: add a test for per_kernel support

 meta/classes/per-kernel.bbclass             | 35 +++++++++++++++++++++
 meta/recipes-kernel/linux-module/module.inc |  1 +
 testsuite/cibuilder.py                      |  5 +++
 testsuite/citest.py                         | 22 +++++++++++++
 4 files changed, 63 insertions(+)
 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/20250411200852.51967-1-chris.larson%40siemens.com.

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

end of thread, other threads:[~2025-04-11 20:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-11 20:08 [PATCHv2 0/4] Add support for per-kernel recipe variants chris.larson via isar-users
2025-04-11 20:08 ` [PATCH 1/4] per-kernel.bbclass: add class chris.larson via isar-users
2025-04-11 20:08 ` [PATCH 2/4] linux-module: inherit per-kernel chris.larson via isar-users
2025-04-11 20:08 ` [PATCH 3/4] testsuite: add 'extra_lines' argument to configure chris.larson via isar-users
2025-04-11 20:08 ` [PATCH 4/4] testsuite: add a test for per_kernel support chris.larson via isar-users
2025-04-11 20:10 ` [PATCHv2 0/4] Add support for per-kernel recipe variants 'Larson, Chris' 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