From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7163980406052618240 X-Received: by 2002:a54:4383:0:b0:35a:d72:5504 with SMTP id u3-20020a544383000000b0035a0d725504mr867360oiv.209.1668519848746; Tue, 15 Nov 2022 05:44:08 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6870:3a2a:b0:13a:e471:20c5 with SMTP id du42-20020a0568703a2a00b0013ae47120c5ls5037664oab.1.-pod-prod-gmail; Tue, 15 Nov 2022 05:44:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf685PzJLpNQ3nAq4UzhWvm5i9tpS1ImPIjqeK7KFxi+RfZFgiptVFj2ZkUD/40h12fcgw2g X-Received: by 2002:a05:6870:d1d1:b0:13b:6481:6bcb with SMTP id b17-20020a056870d1d100b0013b64816bcbmr1110507oac.292.1668519847697; Tue, 15 Nov 2022 05:44:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668519847; cv=none; d=google.com; s=arc-20160816; b=OFrhBIzg1eN9ELFFlymuc9z3ZJARzqY1FuPKVkKuLMuQTkyNHXl+v/GJ2z0PYBujPx gLJv02JsXjj7aSVAc0+fGj5vzF714HuHsHaW4eS7DoxRfTim4uTN7YitjEz+HHkaMo4d tS61DKAMCu2EG1ze4bbCmTEHyAVqEIsdEmnr3unVIbswbPRt5TEPdNMF0TkyXTD5UmVN odlIE8I0epEVPPeD9dlbC6A5Q6U9X/63Aqm0tEvloi4Fiq/27Lnv+wVyJ8e5uMxDCqJ+ hqspAeoXddvFFyXmZOexOQ8KsZCl0Xaw5M09K9Qqmz8mfRdTOj5B3UFpnYGgEyG5XCob TFYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=EEB1hZOleGOfvRh9wkNk7LEbiC01n8kNzo8mk2do/Sg=; b=zCo8w1SC4GauGnzBF87G11+39KHoHCwv8RwyTkCf47as6v6glT8+j7bXG1fAeRdGjM twYGsEfk8uxbTQ4KMfNLGXDZyCVFdSDkmCk6LDlH+6A+zF5IKxBPrw4ZxLjDqHQqdGiq l1ZFwkjVnYUFKRzF1O86GyySiuRkzfmI+sR/3Ce+oHO5VYoUVdB7zT01tNddr7Dnt4IY Zoh0Pk5MMHFes3eXbe+WdFT5AjPe89ZyhkLnUiExCRCnALE7cqAQHW2Rp807kD8pBGYQ acMeXy1Ln2e2zOmJ+PqG6tKArx3JhT/NXw3D9YN183e3BbFJuy0cIKDS5aTa/4qVQMCW 7ffw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 71-20020a9d064d000000b0066d4de41c01si671454otn.5.2022.11.15.05.44.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Nov 2022 05:44:07 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from hp.localnet (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 2AFDi4xJ027765 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Nov 2022 14:44:05 +0100 From: Uladzimir Bely To: "isar-users@googlegroups.com" , "Koch, Stefan" Subject: Re: [PATCH 0/3] linux-custom: Split up binaries from kernel headers to kbuild packages Date: Tue, 15 Nov 2022 16:44:03 +0300 Message-ID: <3379183.LZWGnKmheA@hp> In-Reply-To: <20221109103238.1520091-1-stefan-koch@siemens.com> References: <20221109103238.1520091-1-stefan-koch@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: EG7QmBBJ7Vcr In mail from =D1=81=D1=80=D0=B5=D0=B4=D0=B0, 9 =D0=BD=D0=BE=D1=8F=D0=B1=D1= =80=D1=8F 2022 =D0=B3. 13:32:45 +03 user Koch, Stefan wrote: > Hi >=20 > This patchset is a set of three patches: > - Support overwriting configured schroot dir > - Split up binaries from kernel headers to kbuild packages > - Update custom_kernel docs for split up of kernel scripts and tools >=20 Just some thoughts regarding schroot path overwriting... What if `linux-custom` recipe could disable specific components? I mean, currently we have this feature only for `linux-libc-dev` package, t= hat=20 is disabled when "nolibcdev" build profile is selected. If we added similar= =20 build profiles for other components, we could disable also `linux-$ {KERNEL_NAME_PROVIDED}`, linux-image-{KERNEL_NAME_PROVIDED}, linux-headers- {KERNEL_NAME_PROVIDED} and `linux-image-${KERNEL_NAME_PROVIDED}-dbg` Then, we make `linux-mainline` build all except `linux-kbuild` (if we don't= =20 need cross version). And we could create the similar recipe `linux-kbuild`= =20 that inherits `linux-custom`, but builds only `linux-kbuild` - with=20 ISAR_CROSS_COMPILE=3D"0". Of course, such an approach breaks the feature "build everything from one=20 recipe", but it doesn't require "schroot" workaround and would make build=20 process more configurable. > The main use-case was to swap out the binaries > from the kernel headers package. > They will be swapped out into host and target > specific kernel kbuild packages. >=20 > The main development goals were these: >=20 > 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 >=20 > 2. Honor recommendations for future from doc/custom_kernel.inc > - Generate kernel headers packages for both host and target > when using cross build >=20 > 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 >=20 > 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, and kbuild packages will be created automatically >=20 > Best regards >=20 > Stefan >=20 > Stefan Koch (3): > sbuild: Support overwriting configured schroot dir > linux-custom: Split up binaries from kernel headers to kbuild packages > docs: Update custom_kernel docs for split up of kernel scripts and > tools >=20 > doc/custom_kernel.md | 13 +-- > meta/classes/sbuild.bbclass | 9 +- > .../linux/files/debian/control.tmpl | 18 ++- > .../linux/files/debian/isar/build.tmpl | 9 +- > .../linux/files/debian/isar/common.tmpl | 7 +- > .../linux/files/debian/isar/install.tmpl | 64 +++++++++-- > .../linux/files/debian/rules.tmpl | 5 +- > meta/recipes-kernel/linux/linux-custom.inc | 104 ++++++++++++++++-- > 8 files changed, 191 insertions(+), 38 deletions(-)