public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Koch, Stefan" <stefan-koch@siemens.com>
To: "isar-users@googlegroups.com" <isar-users@googlegroups.com>,
	"MOESSBAUER, Felix" <felix.moessbauer@siemens.com>
Cc: "Sudler, Simon" <simon.sudler@siemens.com>,
	"Storm, Christian" <christian.storm@siemens.com>,
	"Schmidt, Adriaan" <adriaan.schmidt@siemens.com>,
	"Kiszka, Jan" <jan.kiszka@siemens.com>,
	"Adler, Michael" <michael.adler@siemens.com>,
	"cedric.hombourger@siemens.com" <cedric.hombourger@siemens.com>,
	"ubely@ilbers.de" <ubely@ilbers.de>
Subject: Re: [PATCH v5 4/4] docs: Update custom_kernel docs for split up of kernel scripts and tools
Date: Tue, 6 Feb 2024 12:44:51 +0000	[thread overview]
Message-ID: <213de5d9717409299dd2543447ff972ac0df0e60.camel@siemens.com> (raw)
In-Reply-To: <a4123b847f8e80c99a84aae75490c1b1ec0375c7.camel@siemens.com>

On Thu, 2024-02-01 at 10:35 +0000, Moessbauer, Felix (T CED OES-DE)
wrote:
> On Wed, 2024-01-31 at 17:00 +0100, Stefan Koch wrote:
> > Signed-off-by: Stefan Koch <stefan-koch@siemens.com>
> > ---
> >  doc/custom_kernel.md | 18 +++++++++++-------
> >  1 file changed, 11 insertions(+), 7 deletions(-)
> > 
> > diff --git a/doc/custom_kernel.md b/doc/custom_kernel.md
> > index 73987a5b..ce5f1bf7 100644
> > --- a/doc/custom_kernel.md
> > +++ b/doc/custom_kernel.md
> > @@ -38,12 +38,18 @@ The linux-custom recipe provides support for:
> >   7. Allow the name of the kernel image to be changed via
> > `KERNEL_FILE` (defaults
> >      to `vmlinuz`)
> >  
> > - 8. Produce a `linux-headers` package which includes kernel
> > headers
> > and kbuild
> > -    scripts/tools
> > + 8. Produce a `linux-headers` package which includes kernel
> > headers
> >  
> > - 9. The `linux-headers` package shall support native and cross
> > compiles of
> > -    out-of-tree kernel modules. However, when built in cross-
> > compilation mode,
> > -    it cannot be used on the target so far.
> > + 9. Produce a `linux-kbuild` package for both `target` and `host`
> > arch
> > +    which includes kbuild scripts and tools.
> > +    Using `linux-kbuild` provides the package for the target and
> > when
> > +    cross building `linux-kbuild-native` provides the package for
> > the host.
> > +
> > +    So the `linux-headers` package supports native and cross
> > compiles of
> > +    out-of-tree kernel modules. Even, when built in cross-
> > compilation mode,
> > +    it can be used on the target using the `linux-kbuild` package.
> > +
> > +    Only the `host` specific package is built automatically at
> > cross
> > builds.
> 
> Hi Stefan,
> 
> thanks for this series. I tested it and it already improves the
> situation a lot (e.g. no native binaries in the arm64 packages).
> 
> Just a minor thing: When emulating the compilation of a kernel module
> for an otherwise cross-compiled kernel, the build still fails as the
> wrong dependency is attracted. I guess this can easily be fixed in
> module.inc:
> 

I have successful built a module that uses linux-module/module.inc

That works either using cross-compilation or using QEMU based target
compilation.

> 1. add a debian dependency to the "correct" kbuild package (e.g. the
> one for arm64)
Was automatically used (:arm64) when ISAR_CROSS_COMPILE = "0" otherwise
(:amd64)
> 2. add an explicit debian build dependency to the kbuild package for
> the non-native arch (e.g. arm64).
Was unchanged
> 
> Only do that on non-cross (bitbake via the bitbake var, debian either
> via bitbake or via a build-profile selector, e.g. "[cross]").
Was unchanged, too
> 
> Best regards,
> Felix
> 
Stefan
> >  
> >   10. Produce a `linux-libc-dev` package to support user-land
> > builds
> >  
> > @@ -72,8 +78,6 @@ In the future, the recipe may be extended to:
> >  
> >   3. Be compatible with Ubuntu
> >  
> > - 4. When cross-building, generate kernel-headers for both host and
> > target
> > -
> >  ## Examples
> >  
> >  The linux-custom recipe is currently used by the linux-mainline
> > package and is
> 
> -- 
> Siemens AG, Technology
> Linux Expert Center
> 
> 

-- 
Stefan Koch
Siemens AG
www.siemens.com

  reply	other threads:[~2024-02-06 12:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-31 15:59 [PATCH v5 0/4] linux-custom: Split up binaries from kernel headers to kbuild package Stefan Koch
2024-01-31 15:59 ` [PATCH v5 1/4] linux-custom: Set PROVIDES variable using bitbake overrides Stefan Koch
2024-01-31 15:59 ` [PATCH v5 2/4] linux-custom: Split up binaries from kernel headers to kbuild package Stefan Koch
2024-01-31 16:00 ` [PATCH v5 3/4] linux-custom: Provide target and host specific kernel kbuild packages Stefan Koch
2024-01-31 16:00 ` [PATCH v5 4/4] docs: Update custom_kernel docs for split up of kernel scripts and tools Stefan Koch
2024-02-01 10:35   ` MOESSBAUER, Felix
2024-02-06 12:44     ` Koch, Stefan [this message]
2024-02-06 12:50       ` MOESSBAUER, Felix
2024-02-06 13:04         ` Koch, Stefan
2024-02-06 12:51 ` [PATCH v5 0/4] linux-custom: Split up binaries from kernel headers to kbuild package MOESSBAUER, Felix

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=213de5d9717409299dd2543447ff972ac0df0e60.camel@siemens.com \
    --to=stefan-koch@siemens.com \
    --cc=adriaan.schmidt@siemens.com \
    --cc=cedric.hombourger@siemens.com \
    --cc=christian.storm@siemens.com \
    --cc=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=michael.adler@siemens.com \
    --cc=simon.sudler@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