From: "'Koch, Stefan' via isar-users" <isar-users@googlegroups.com>
To: "amikan@ilbers.de" <amikan@ilbers.de>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>,
"cedric.hombourger@siemens.com" <cedric.hombourger@siemens.com>
Cc: "Storm, Christian" <christian.storm@siemens.com>,
"Adler, Michael" <michael.adler@siemens.com>,
"Sudler, Simon" <simon.sudler@siemens.com>,
"ibr@ilbers.de" <ibr@ilbers.de>,
"MOESSBAUER, Felix" <felix.moessbauer@siemens.com>,
"Kiszka, Jan" <jan.kiszka@siemens.com>,
"Schmidt, Adriaan" <adriaan.schmidt@siemens.com>,
"ubely@ilbers.de" <ubely@ilbers.de>
Subject: Re: [PATCH v6 3/5] linux-custom: Provide target and host specific kernel kbuild packages
Date: Thu, 4 Jul 2024 13:19:36 +0000 [thread overview]
Message-ID: <b11015b69f4c68b194bde2f00a7edcf9b1bba543.camel@siemens.com> (raw)
In-Reply-To: <GV2PR10MB6137331E50C81AACAB1AD145FBDE2@GV2PR10MB6137.EURPRD10.PROD.OUTLOOK.COM>
On Thu, 2024-07-04 at 13:02 +0000, Hombourger, Cedric (DI CTO FDS CES
LX) wrote:
>
>
> > ________________________________________
> > From: Koch, Stefan (DI PA DCP R&D 3) <stefan-koch@siemens.com>
> > Sent: Thursday, July 4, 2024 2:44 PM
> > To: amikan@ilbers.de <amikan@ilbers.de>;
> > isar-users@googlegroups.com <isar-users@googlegroups.com>
> > Cc: Storm, Christian (T CED OES-DE) <christian.storm@siemens.com>;
> > ibr@ilbers.de <ibr@ilbers.de>; Hombourger, Cedric (DI CTO FDS CES
> > LX) > <cedric.hombourger@siemens.com>; Adler, Michael (T CED OES-
> > DE) <michael.adler@siemens.com>; Sudler, Simon (DI PA DCP TI)
> > <simon.sudler@siemens.com>; Moessbauer, Felix (T CED OES-DE)
> > <felix.moessbauer@siemens.com>; Schmidt, Adriaan (T CED EDC-DE)
> > <adriaan.schmidt@siemens.com>; Kiszka, Jan (T CED)
> > <jan.kiszka@siemens.com>; ubely@ilbers.de <ubely@ilbers.de>
> > Subject: Re: [PATCH v6 3/5] linux-custom: Provide target and host
> > specific kernel kbuild packages
> >
> > On Thu, 2024-07-04 at 09:12 +0300, Anton Mikanovich wrote:
> > > 14/02/2024 12:10, 'Stefan Koch' via isar-users wrote:
> > > > When using a cross build this patch does introduce
> > > > target and host specific kernel kbuild packages that
> > > > ship the "scripts" and "tools" binaries.
> > > >
> > > > The "-kbuildtarget" and "-native" multiarch bitbake targets are
> > > > useable to run
> > > > additional target or host specific builds for kbuild scripts
> > > > and
> > > > tools.
> > > >
> > > > Using the "-kbuildtarget" bitbake target enables the build of
> > > > a target specific kbuild package at cross builds.
> > > > So using "linux-kbuild" provides the package for the target
> > > > platform.
> > > >
> > > > Using the "-native" bitbake target enables the build of
> > > > a host specific kbuild package at cross builds.
> > > > When cross building using "linux-kbuild-native"
> > > > provides the package for the host platform.
> > > >
> > > > Only the "host" specific package is built automatically at
> > > > cross
> > > > builds.
> > > >
> > > > This solves this from doc/custom_kernel.inc:
> > > > - The kernel headers package has not supported both native
> > > > and cross compilation of kernel modules when itself was
> > > > cross
> > > > built
> > > > - Future roadmap: Generate kernel headers package for both host
> > > > and target when using a cross build
> > > >
> > > > Signed-off-by: Stefan Koch <stefan-koch@siemens.com>
> > >
> > Hello Stefan,
> > >
> > > The changes from this patch probably cause wrong asm headers
> > > placing:
> > >
> > > https://github.com/ilbers/isar/issues/105
> > >
> > > Can you please take a look?
> > Thanks. I have created two patches. I'll send these to the list.
> > KERNEL_LIBC_DEV_DEPLOY must set manually to 1 otherwise build is
> > skipped and linux-libc-dev binary package from debian is used.
Sent both to the list...
>
> Should we switch to always generate this package but with a suffix (-
> ${KERNEL_NAME}) and add the following to its package spec:
> Provides: linux-libc-dev
> Replaces: linux-libc-dev
> Conflicts: linux-libc-dev
>
> I have been recently experimenting with this change. This allows both
> Debian's linux-libc-dev and a custom linux-libc-dev package to co-
> exist in a package repository. People wanting their custom linux-
> libc-headers in the sbuild environment (e.g. because they have a
> driver shipping custom headers with additional ioctls defined) to get
> them installed there.
Seems to be make sense. Might be renaming from:
linux-libc-dev
linux-libc-dev-${DISTRO_ARCH}-cross
to:
linux-libc-dev-${KERNEL_NAME_PROVIDED}
linux-libc-dev-${KERNEL_NAME_PROVIDED}-${DISTRO_ARCH}-cross
>
> I am happy to send a PATCH if people are OK with the approach. That
> patch would let us mark KERNEL_LIBC_DEV_DEPLOY as deprecated and
> eventually remove it in a not too distant future
Will you include that change above, too?
>
> Cedric
--
Stefan Koch
Siemens AG
http://www.siemens.com/
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/isar-users/b11015b69f4c68b194bde2f00a7edcf9b1bba543.camel%40siemens.com.
next prev parent reply other threads:[~2024-07-04 13:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-14 10:10 [PATCH v6 0/5] linux-custom: Split up binaries from kernel headers to kbuild package Stefan Koch
2024-02-14 10:10 ` [PATCH v6 1/5] linux-custom: Set PROVIDES variable using bitbake overrides Stefan Koch
2024-02-14 10:10 ` [PATCH v6 2/5] linux-custom: Split up binaries from kernel headers to kbuild package Stefan Koch
2024-02-14 10:10 ` [PATCH v6 3/5] linux-custom: Provide target and host specific kernel kbuild packages Stefan Koch
2024-05-05 17:16 ` Jan Kiszka
2024-05-06 10:07 ` Koch, Stefan
2024-05-06 10:46 ` Jan Kiszka
2024-05-06 6:22 ` Jan Kiszka
2024-07-04 6:12 ` Anton Mikanovich
2024-07-04 12:44 ` 'Koch, Stefan' via isar-users
2024-07-04 13:02 ` 'cedric.hombourger@siemens.com' via isar-users
2024-07-04 13:19 ` 'Koch, Stefan' via isar-users [this message]
2024-02-14 10:10 ` [PATCH v6 4/5] linux-module: Support emulated module build with cross-compiled kernel Stefan Koch
2024-02-14 10:10 ` [PATCH v6 5/5] docs: Update custom_kernel docs for split up of kernel scripts and tools Stefan Koch
2024-02-16 7:42 ` [PATCH v6 0/5] linux-custom: Split up binaries from kernel headers to kbuild package MOESSBAUER, Felix
2024-04-15 12:47 ` Uladzimir Bely
2024-04-17 9:29 ` Koch, Stefan
2024-04-23 19:22 ` Uladzimir Bely
2024-04-30 13:10 ` 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=b11015b69f4c68b194bde2f00a7edcf9b1bba543.camel@siemens.com \
--to=isar-users@googlegroups.com \
--cc=adriaan.schmidt@siemens.com \
--cc=amikan@ilbers.de \
--cc=cedric.hombourger@siemens.com \
--cc=christian.storm@siemens.com \
--cc=felix.moessbauer@siemens.com \
--cc=ibr@ilbers.de \
--cc=jan.kiszka@siemens.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