public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v6 0/5] linux-custom: Split up binaries from kernel headers to kbuild package
@ 2024-02-14 10:10 Stefan Koch
  2024-02-14 10:10 ` [PATCH v6 1/5] linux-custom: Set PROVIDES variable using bitbake overrides Stefan Koch
                   ` (7 more replies)
  0 siblings, 8 replies; 19+ messages in thread
From: Stefan Koch @ 2024-02-14 10:10 UTC (permalink / raw)
  To: isar-users
  Cc: stefan-koch, jan.kiszka, christian.storm, michael.adler,
	simon.sudler, cedric.hombourger, adriaan.schmidt,
	felix.moessbauer, ubely

Hi

This updated v6 patchset implement suggestions from reviewed v4 patchset.
It's now a set of five patches:
- linux-custom: Set PROVIDES variable using bitbake overrides
- linux-custom: Split up binaries from kernel headers to kbuild package
- linux-custom: Provide target and host specific kernel kbuild packages
- linux-module: Support emulated module build with cross-compiled kernel
- docs: Update custom_kernel docs for split up of kernel scripts and tools

The first commit sets the PROVIDES variable using
bitbake overrides instead of python code.

Swap out the binaries from the kernel headers
into kernel kbuild package is the main use-case
introduced by the second commit
"Split up binaries from kernel headers to kbuild package"

The third commit "Provide target and host specific kernel kbuild packages"
introduces that the binaries could be swapped out into host and target
specific kernel kbuild packages.

Support of emulated module build with a cross-compiled kernel build
is introduced by the fourth commit.

These are the main development goals:

1. Solve already known isar custom kernel
limitations from doc/custom_kernel.inc
- kernel headers package does not support both native
  and cross compilation of kernel modules when cross built

2. Honor recommendations for future from doc/custom_kernel.inc
- Generate kernel headers packages for both host and target
  when using cross build

3. Add extensions known from debian kernel packages structure
- Generate a kernel headers package without binaries
- Create specific kernel kbuild packages that
  will ship the "scripts" and "tools" binaries
- Use symlinks to point to the "scripts" and "tools" binaries

4. Be user friendly
- Avoid redundant configuration of kernel source definitions with user
  actions to enable kbuild package generation
- Use already known way to include linux-custom.inc in just one
  own bitbake recipe that provides the kernel source definitions
- Keep known user behavior for existing build configurations:
  just update isar, and use the new linux-kbuild bitbake target
  to create the kbuild target package when cross building

Best regards

Stefan

Stefan Koch (5):
  linux-custom: Set PROVIDES variable using bitbake overrides
  linux-custom: Split up binaries from kernel headers to kbuild package
  linux-custom: Provide target and host specific kernel kbuild packages
  linux-module: Support emulated module build with cross-compiled kernel
  docs: Update custom_kernel docs for split up of kernel scripts and
    tools

 RECIPE-API-CHANGELOG.md                       | 31 ++++++++
 doc/custom_kernel.md                          | 18 +++--
 meta/recipes-kernel/linux-module/module.inc   |  3 +-
 .../linux/classes/kbuildtarget.bbclass        |  8 ++
 .../linux/files/debian/control.tmpl           | 15 +++-
 .../linux/files/debian/isar/build.tmpl        | 13 +++-
 .../linux/files/debian/isar/common.tmpl       | 11 +++
 .../linux/files/debian/isar/install.tmpl      | 75 ++++++++++++++-----
 meta/recipes-kernel/linux/linux-custom.inc    | 65 +++++++++++++---
 meta/recipes-kernel/linux/linux-distro.bb     |  1 +
 10 files changed, 199 insertions(+), 41 deletions(-)
 create mode 100644 meta/recipes-kernel/linux/classes/kbuildtarget.bbclass

-- 
2.39.2


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

end of thread, other threads:[~2024-07-04 13:19 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-14 10:10 [PATCH v6 0/5] linux-custom: Split up binaries from kernel headers to kbuild package Stefan Koch
2024-02-14 10:10 ` [PATCH v6 1/5] linux-custom: Set PROVIDES variable using bitbake overrides Stefan Koch
2024-02-14 10:10 ` [PATCH v6 2/5] linux-custom: Split up binaries from kernel headers to kbuild package Stefan Koch
2024-02-14 10:10 ` [PATCH v6 3/5] linux-custom: Provide target and host specific kernel kbuild packages Stefan Koch
2024-05-05 17:16   ` Jan Kiszka
2024-05-06 10:07     ` Koch, Stefan
2024-05-06 10:46       ` Jan Kiszka
2024-05-06  6:22   ` Jan Kiszka
2024-07-04  6:12   ` Anton Mikanovich
2024-07-04 12:44     ` 'Koch, Stefan' via isar-users
2024-07-04 13:02       ` 'cedric.hombourger@siemens.com' via isar-users
2024-07-04 13:19         ` 'Koch, Stefan' via isar-users
2024-02-14 10:10 ` [PATCH v6 4/5] linux-module: Support emulated module build with cross-compiled kernel Stefan Koch
2024-02-14 10:10 ` [PATCH v6 5/5] docs: Update custom_kernel docs for split up of kernel scripts and tools Stefan Koch
2024-02-16  7:42 ` [PATCH v6 0/5] linux-custom: Split up binaries from kernel headers to kbuild package MOESSBAUER, Felix
2024-04-15 12:47 ` Uladzimir Bely
2024-04-17  9:29   ` Koch, Stefan
2024-04-23 19:22 ` Uladzimir Bely
2024-04-30 13:10   ` Koch, Stefan

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