From: "Schmidt, Adriaan" <adriaan.schmidt@siemens.com>
To: Uladzimir Bely <ubely@ilbers.de>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: "Kiszka, Jan" <jan.kiszka@siemens.com>,
"Koch, Stefan" <stefan-koch@siemens.com>
Subject: RE: [PATCH v5 0/3] kbuild follow-up
Date: Tue, 2 Jul 2024 08:10:40 +0000 [thread overview]
Message-ID: <AS4PR10MB5318E01C0D63C41F631AF19EEDDC2@AS4PR10MB5318.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <c19582246e6e2961ea1b0ec180a63c6404114ad9.camel@ilbers.de>
Uladzimir Bely <ubely@ilbers.de>, Dienstag, 2. Juli 2024 08:41:
> On Thu, 2024-05-16 at 08:13 +0200, 'Adriaan Schmidt' via isar-users
> wrote:
> > Ok, this is indeed a tricky one...
> >
> > It's based on the code from Stefan's "[PATCH] linux-module: Support
> > emulated module build with cross-compiled kernel" (replacing that
> > patch),
> > and on the result of staring at dependency graphs with Jan.
> > This mainly addresses corner cases of the refactored kbuild packaging
> > when cross-compiling.
> >
> > I've tested
> >
> > - cross-compiled custom kernel and cross module build
> > - cross-compiled custom kernel and emulated module build
> > - distro kernel and emulated module build
> > - distro kernel and native module build
> >
> > Let me know if one of your use-cases is still missing.
> >
> > Also including some fixups (p2-3) brought up in recent reviews on the
> > ML.
> >
> > Adriaan
> >
>
> This might need some additional cosmetic changes.
>
> I was debugging other (not related) issues and just noted that the
> patchset brought some messages bitbake prints during parsing stage,
> when amd64/arm64 targets (having "compat" alternative) are selected:
>
> ```
> beagleplay, hikey:
> NOTE: Multiple providers are available for linux-mainline-pseudo-native
> (linux-mainline, linux-mainline-compat)
>
> qemuarm64:
> NOTE: Multiple providers are available for linux-image-arm64 (linux-
> distro, linux-distro-compat)
> NOTE: Multiple providers are available for linux-headers-arm64 (linux-
> distro, linux-distro-compat)
>
> qemuamd64, virtualbox:
> NOTE: Multiple providers are available for linux-image-amd64 (linux-
> distro, linux-distro-compat)
> ```
>
> This doesn't make builds fail, but a bit messy.
>
> It's possible to suppress the messages by specifying PREFERRED_PROVIDER
> in machine configs. E.g., for qemuarm64.conf:
>
> ```
> PREFERRED_PROVIDER_linux-image-${KERNEL_NAME} = "linux-distro"
> PREFERRED_PROVIDER_linux-headers-${KERNEL_NAME} = "linux-distro"
> ```
>
> But is thare probably some better place for this that would not require
> editing multiple machine configs?
Does it even make sense to have -compat variants of kernel packages?
If not, then I think it should be possible to disable them with a
ISAR_ENABLE_COMPAT_ARCH = "0"
on a per-recipe base, in linux-custom.inc and linux-distro.bb.
Adriaan
> --
> Best regards,
> Uladzimir.
prev parent reply other threads:[~2024-07-02 8:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-16 6:13 Adriaan Schmidt
2024-05-16 6:13 ` [PATCH v5 1/3] module.inc: fix kbuild dependency Adriaan Schmidt
2024-05-16 6:13 ` [PATCH v5 2/3] linux-custom: use to_boolean when checking ISAR_CROSS_COMPILE Adriaan Schmidt
2024-05-16 6:13 ` [PATCH v5 3/3] kbuildtarget.bbclass: add missing license header Adriaan Schmidt
2024-05-22 6:42 ` [PATCH v5 0/3] kbuild follow-up Anton Mikanovich
2024-05-22 6:52 ` Schmidt, Adriaan
2024-05-23 6:08 ` Anton Mikanovich
2024-07-02 6:41 ` Uladzimir Bely
2024-07-02 8:10 ` Schmidt, Adriaan [this message]
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=AS4PR10MB5318E01C0D63C41F631AF19EEDDC2@AS4PR10MB5318.EURPRD10.PROD.OUTLOOK.COM \
--to=adriaan.schmidt@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@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