From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7330292884155924480 X-Forwarded-Encrypted: i=2; AJvYcCW0XLtEKswtvUgvPbDFOCr/dKk26axtfNIVVKzn3z2Z2C7kVzJ+MVG0vaC7m/tF1QZdoa9SXKUx9cVcBbsA+TEHFjCvSdAVMVwhAEI= X-Received: by 2002:a05:6000:1365:b0:33e:cf4d:c581 with SMTP id q5-20020a056000136500b0033ecf4dc581mr101604wrz.41.1713900153000; Tue, 23 Apr 2024 12:22:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:3b93:b0:416:664d:e4c6 with SMTP id 5b1f17b1804b1-418ff24e624ls25000125e9.1.-pod-prod-06-eu; Tue, 23 Apr 2024 12:22:30 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVG7FL9zk6KfkmhC+f+QN+anyTu/BF3ru6+WOFFPyAicYhvZtG4eiCYWhqrCGbV/uB1U/J2nLErSyITIUTMUt7MhcPyfw8b6uKsf0c= X-Google-Smtp-Source: AGHT+IHIiCSMw0duGomVq2e4Gs3Icuy583y9tkHRt0voJ7vMm8G3t5VH5WpfgXDLif1N30Ozqd5Q X-Received: by 2002:a05:600c:3d8b:b0:418:e964:4684 with SMTP id bi11-20020a05600c3d8b00b00418e9644684mr178149wmb.1.1713900150568; Tue, 23 Apr 2024 12:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713900150; cv=none; d=google.com; s=arc-20160816; b=lN5TD9ZrYd6ptE6xmkopD1FgOpTeKbyhdbYO4CKqlSf0KQHA+fW8Hn+p0BJyM29NK8 mXXEzejho1K0ZDHhzN8/fYdRKrhzrsVrCyXElMbsMFm+AtrqEWGhYEaFi49QoO7U2mkt /Dx1X6MQPQ/Rfu4p0x7IhtRXmuJmeasu0TRJ4txFjeLkYC/TWpgb634R1F7hSmNx0y0n fRhaOCzsmO6tlvG+8jocwMwkRp+pCeiTuL+jqNw3nEVvzeI2BeUlvDt/XN1rLMVKMqri tPbMlmq3FM41nPVx+3UxGAGrdXnltUbkkrwVSV7oe+880He4fQutRh9K9tT0ycFeIIqG G6ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id; bh=C4d+TsbkRJuETsRpLUxMNxxGZXrlfI4/XnNyoL+YNws=; fh=+ohBtoJkngH9EEsi1cB5JC9aFz+ALePE8DL3DRydGmA=; b=jg/RGscxK2SRtgBRzd42r+5LUJ0HseDXHC+L51PeKkSYciRPDr0XaMe6FlR3+nqx6h P81G/FOIHkHmS7KFtGx9a0TehsnSrTQMcApjaHwXNuV0NdJz97BZeUsnHGLn9ZYJRy/+ cMagCUjdS6hdiQoOlZ5MnAJRvpRJmWSUx+EhgNWUEpdCnDAXcF0dmztIly8pn09FHFwn hPep3Ujfz2noZ9nYQDKwvy2Gb36D4nojdaul1coEUmNzEPT3b6SqCDLi7klUuVxIg55Q KYa99AEK3PADOFvZ1K8WKt2ZGaU8FZRKb3NoGFODIgv/EgA2DuxPzGlO2cdBXQ9MEM8b L00Q==; dara=google.com 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 c16-20020a05600c0a5000b0041a9fa3597dsi2519wmq.1.2024.04.23.12.22.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Apr 2024 12:22:30 -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 [127.0.0.1] (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 43NJMRGV027010 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Apr 2024 21:22:28 +0200 Message-ID: Subject: Re: [PATCH v6 0/5] linux-custom: Split up binaries from kernel headers to kbuild package From: Uladzimir Bely To: Stefan Koch , isar-users@googlegroups.com Cc: jan.kiszka@siemens.com, christian.storm@siemens.com, michael.adler@siemens.com, simon.sudler@siemens.com, cedric.hombourger@siemens.com, adriaan.schmidt@siemens.com, felix.moessbauer@siemens.com Date: Tue, 23 Apr 2024 22:22:26 +0300 In-Reply-To: <20240214101025.2123540-1-stefan-koch@siemens.com> References: <20240214101025.2123540-1-stefan-koch@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.0 (by Flathub.org) MIME-Version: 1.0 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: rKvR9y8dfR/g On Wed, 2024-02-14 at 11:10 +0100, 'Stefan Koch' via isar-users wrote: > Hi >=20 > 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 >=20 > The first commit sets the PROVIDES variable using > bitbake overrides instead of python code. >=20 > 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" >=20 > 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. >=20 > Support of emulated module build with a cross-compiled kernel build > is introduced by the fourth commit. >=20 > These are the main development goals: >=20 > 1. Solve already known isar custom kernel > limitations from doc/custom_kernel.inc > - kernel headers package does not support both native > =C2=A0 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 > =C2=A0 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 > =C2=A0 will ship the "scripts" and "tools" binaries > - Use symlinks to point to the "scripts" and "tools" binaries >=20 > 4. Be user friendly > - Avoid redundant configuration of kernel source definitions with > user > =C2=A0 actions to enable kbuild package generation > - Use already known way to include linux-custom.inc in just one > =C2=A0 own bitbake recipe that provides the kernel source definitions > - Keep known user behavior for existing build configurations: > =C2=A0 just update isar, and use the new linux-kbuild bitbake target > =C2=A0 to create the kbuild target package when cross building >=20 > Best regards >=20 > Stefan >=20 > Stefan Koch (5): > =C2=A0 linux-custom: Set PROVIDES variable using bitbake overrides > =C2=A0 linux-custom: Split up binaries from kernel headers to kbuild > package > =C2=A0 linux-custom: Provide target and host specific kernel kbuild > packages > =C2=A0 linux-module: Support emulated module build with cross-compiled > kernel > =C2=A0 docs: Update custom_kernel docs for split up of kernel scripts and > =C2=A0=C2=A0=C2=A0 tools >=20 > =C2=A0RECIPE-API-CHANGELOG.md=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 | 31 ++++++++ > =C2=A0doc/custom_kernel.md=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 18 +++-- > =C2=A0meta/recipes-kernel/linux-module/module.inc=C2=A0=C2=A0 |=C2=A0 3 += - > =C2=A0.../linux/classes/kbuildtarget.bbclass=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 |=C2=A0 8 ++ > =C2=A0.../linux/files/debian/control.tmpl=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 15 +++- > =C2=A0.../linux/files/debian/isar/build.tmpl=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 | 13 +++- > =C2=A0.../linux/files/debian/isar/common.tmpl=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 | 11 +++ > =C2=A0.../linux/files/debian/isar/install.tmpl=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 | 75 ++++++++++++++--- > -- > =C2=A0meta/recipes-kernel/linux/linux-custom.inc=C2=A0=C2=A0=C2=A0 | 65 += ++++++++++++--- > =C2=A0meta/recipes-kernel/linux/linux-distro.bb=C2=A0=C2=A0=C2=A0=C2=A0 |= =C2=A0 1 + > =C2=A010 files changed, 199 insertions(+), 41 deletions(-) > =C2=A0create mode 100644 meta/recipes- > kernel/linux/classes/kbuildtarget.bbclass >=20 > --=20 > 2.39.2 >=20 Applied to next, excluding patch 4 (causing build failures on amd64 arch), as discussed on maillist. Thanks.