public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Moessbauer, Felix" <felix.moessbauer@siemens.com>
To: "isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: Cross compilation of kernel modules for distro kernels
Date: Thu, 3 Mar 2022 08:18:34 +0000	[thread overview]
Message-ID: <AM9PR10MB4869DD98CE40BD069D1521B389049@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM> (raw)

Hi,

I just stumbled upon a cross-compilation issue of a kernel module.
This might be a general issue we should discuss with debian upstream and also handle in the module.inc file.

Situation:
- custom kernel module
- for a stock/distro kernel
- for non amd64 targets

This package depends on the linux-headers-<target> package which transitively attracts the cpp-<x>:<target-arch>.
The cpp-<x>:<target-arch> package however cannot be co-installed with cpp-<x>:amd64.
By that, cross-compiling of the module is simply not possible due to the dependencies of the linux-headers-<target> package.

Notes:
- custom kernels are not affected because they model the dependencies of the headers package differently.
- builds using the sbuilder should also be not affected because each build runs in its own environment (but this is to be checked)

A workaround is to conditionally disable cross compilation for the module:
https://github.com/siemens/meta-coral/pull/16/commits/5a71a1f28b7b2e0406b8f1d707b33817fe74d867

Best regards,
Felix

--
Siemens AG, Technology, T CED SES-DE
Otto-Hahn-Ring 6, 81739 München, Germany



                 reply	other threads:[~2022-03-03  8:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=AM9PR10MB4869DD98CE40BD069D1521B389049@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM \
    --to=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.com \
    /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