public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Uladzimir Bely <ubely@ilbers.de>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>,
	"Koch, Stefan" <stefan-koch@siemens.com>
Cc: "Storm, Christian" <christian.storm@siemens.com>,
	"Adler, Michael" <michael.adler@siemens.com>,
	"Sudler, Simon" <simon.sudler@siemens.com>
Subject: Re: [PATCH v2 0/5] linux-custom: Split up binaries from kernel headers to kbuild packages
Date: Fri, 17 Mar 2023 09:06:35 +0100	[thread overview]
Message-ID: <ea225f9c-5724-904c-71a6-d38faff38ecf@siemens.com> (raw)
In-Reply-To: <25843489.1r3eYUQgxm@hp>

On 17.03.23 08:41, Uladzimir Bely wrote:
> In mail from Tuesday, 20 December 2022 20:09:27 +03 user Koch, Stefan wrote:
>> Hi
>>
>> This updated v2 patchset implement suggestions from reviewed v1 patchset.
>> It's now a set of five patches:
>> - linux-custom: Split up binaries from kernel headers to kbuild package
>> - sbuild: Support overwriting configured schroot dir
>> - dpkg: Add support for additional target and host builds
>> - linux-custom: Provide host and target specific kernel kbuild packages
>> - docs: Update custom_kernel docs for split up of kernel scripts and tools
>>
>> The main use-case was to swap out the binaries
>> from the kernel headers into kernel kbuild package.
>> This is introduced by the first commit
>> "Split up binaries from kernel headers to kbuild package"
>>
>> The fourth commit "Provide host and target specific kernel kbuild packages"
>> introduces that the binaries could be swapped out into host and target
>> specific kernel kbuild packages.
>>
>> The main development goals were these:
>>
>> 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 usage of separate kbuild bitbake recipe that may enforce
>>   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, append "target" (and "host") to ISAR_BUILDS and kbuild packages for
>> target and host will be created automatically
>>
>> Best regards
>>
>> Stefan
>>
>> Stefan Koch (5):
>>   linux-custom: Split up binaries from kernel headers to kbuild package
>>   sbuild: Support overwriting configured schroot dir
>>   dpkg: Add support for additional target and host builds
>>   linux-custom: Provide host and target specific kernel kbuild packages
>>   docs: Update custom_kernel docs for split up of kernel scripts and
>>     tools
>>
>>  doc/custom_kernel.md                          | 20 +++--
>>  meta/classes/dpkg-base.bbclass                | 51 +++++++++++--
>>  meta/classes/dpkg.bbclass                     |  2 +-
>>  meta/classes/sbuild.bbclass                   |  9 ++-
>>  .../linux/files/debian/control.tmpl           | 25 ++++++-
>>  .../linux/files/debian/isar/build.tmpl        | 13 +++-
>>  .../linux/files/debian/isar/common.tmpl       | 14 +++-
>>  .../linux/files/debian/isar/configure.tmpl    | 13 +++-
>>  .../linux/files/debian/isar/install.tmpl      | 73 ++++++++++++++-----
>>  .../linux/files/debian/rules.tmpl             |  2 +-
>>  meta/recipes-kernel/linux/linux-custom.inc    | 51 ++++++++++---
>>  11 files changed, 219 insertions(+), 54 deletions(-)
> 
> I've recently went on testing the patchset in CI.
> 
> - For now, on updated 'next' it at least requires some trivial changes fixups 
> caused by merged "getVar(var, True) => getVar(var)" reduction. I could prepare 
> v3 on my own or wait for new version on maillist.
> 
> - Also, we now have multiarch support patchset merged to `next` (and that is 
> the main reason of long non-merging this kbuild patchset). So, even if the 
> patch in its current state works, it probably could reuse new approach (e.g. 
> <package>-compat or <package>-native).
> 

Yes, patch 1 seems likely to stay (looked good when scanned it back
then, but I can have a closer look now), the rest needs to be reworked
according to what I outlined back then. So, don't merge this series.

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux


  reply	other threads:[~2023-03-17  8:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-20 17:09 Koch, Stefan
2022-12-20 17:09 ` [PATCH v2 2/5] sbuild: Support overwriting configured schroot dir Koch, Stefan
2022-12-20 17:09 ` [PATCH v2 3/5] dpkg: Add support for additional target and host builds Koch, Stefan
2022-12-20 17:09 ` [PATCH v2 1/5] linux-custom: Split up binaries from kernel headers to kbuild package Koch, Stefan
2023-03-17  8:18   ` Jan Kiszka
2023-03-17  8:32     ` cedric.hombourger
2023-03-17  9:20     ` Koch, Stefan
2023-03-17  9:38       ` Jan Kiszka
2022-12-20 17:09 ` [PATCH v2 5/5] docs: Update custom_kernel docs for split up of kernel scripts and tools Koch, Stefan
2022-12-20 17:09 ` [PATCH v2 4/5] linux-custom: Provide host and target specific kernel kbuild packages Koch, Stefan
2023-03-17  7:41 ` [PATCH v2 0/5] linux-custom: Split up binaries from kernel headers to " Uladzimir Bely
2023-03-17  8:06   ` Jan Kiszka [this message]
2023-08-16 11:29     ` Koch, Stefan

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=ea225f9c-5724-904c-71a6-d38faff38ecf@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=christian.storm@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=michael.adler@siemens.com \
    --cc=simon.sudler@siemens.com \
    --cc=stefan-koch@siemens.com \
    --cc=ubely@ilbers.de \
    /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