From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7163980406052618240 X-Received: by 2002:a05:6808:6149:b0:384:27f0:bd0a with SMTP id dl9-20020a056808614900b0038427f0bd0amr2609037oib.9.1679038880273; Fri, 17 Mar 2023 00:41:20 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aca:e142:0:b0:37f:a766:5f32 with SMTP id y63-20020acae142000000b0037fa7665f32ls1079975oig.5.-pod-prod-gmail; Fri, 17 Mar 2023 00:41:19 -0700 (PDT) X-Google-Smtp-Source: AK7set/i7bF7SEw/eIvJf+YYGTaMvzu2ZOnlZY/e3zEQD6fwaFIx4ilZAouTnx6BjM+9FbCRnUsM X-Received: by 2002:aca:210e:0:b0:386:9bf4:4eca with SMTP id 14-20020aca210e000000b003869bf44ecamr4341191oiz.41.1679038879322; Fri, 17 Mar 2023 00:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679038879; cv=none; d=google.com; s=arc-20160816; b=0zFx4eGR12BcNRy3WNyAMPneQOQ9fyjiJMb9uH6OCgcCjY05oUjfJaevlz6W2UHVzo /PJkpE3oaEtpXHYQkx/2eQoB3vVIYPubdDAvMi4YC1W+Wvm9htprcFJ71V2LoYRb/Eu2 iZxhqbSaxVu0DiewFiyBkvul6ujtOnagPhbx1y5qVlbIa3fm5PSZO84AxBk2HmnEVGSb 92LZs4MFcnqsbPCa0O5/Tan2HrsrA9vbhU3nIAC1M5xhe2emkBYaozS9Xj2+peSHFtit KkpRdkT7K9lXsVGoVzben4EBsmB0HoahR3CtltK+Z19RASWpmvPegno8Kp42MpZUMe0f ZpFQ== 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:cc:to:from; bh=snaQ74ot2PhfbDPziCvhXsEONq6yjMVYYxSsnt+kQy0=; b=Dm9Fp5bw3nwCg1b5fNzZtoihUhx0X6LuRJmH7UEMhcHXVbq7OcfKDsNzNyxHA2lNn8 Z5VSFh4aQXqQ5F7ODRBFjTBgX0s6nBGWQn+90lOHbpXmcWX7le2WkS2r8jwH9mK2fDSr UFwO1r4u1XSpR5PYzfaEIiD3OZlysDaLBg4l/kE74RgiTjigZHfOI6pkDN8CcOSMocN4 S90aQnU8/naxm0P0uM8yiqV0bsLnGVhnOsx1d3hwuyfUmEmHF4UXSPCSaNe13/6IiGV7 c25tGu6Dr1Sq+dMZMwsyFR8neLIKiQtZqwtz8IJHKPgeGJ6AASM817+/LMGqo/W+PQnC uqPQ== 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 y22-20020a4acb96000000b005176d876205si56658ooq.0.2023.03.17.00.41.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Mar 2023 00:41:19 -0700 (PDT) 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 32H7f4Hq004131 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Mar 2023 08:41:16 +0100 From: Uladzimir Bely To: "isar-users@googlegroups.com" , "Koch, Stefan" Cc: "Kiszka, Jan" , "Storm, Christian" , "Adler, Michael" , "Sudler, Simon" , "Koch, Stefan" Subject: Re: [PATCH v2 0/5] linux-custom: Split up binaries from kernel headers to kbuild packages Date: Fri, 17 Mar 2023 10:41:16 +0300 Message-ID: <25843489.1r3eYUQgxm@hp> In-Reply-To: <20221220170921.1718503-1-stefan-koch@siemens.com> References: <20221220170921.1718503-1-stefan-koch@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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: 3gtjTmiC2JmE 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. -compat or -native).