* Cross compilation of kernel modules for distro kernels
@ 2022-03-03 8:18 Moessbauer, Felix
0 siblings, 0 replies; only message in thread
From: Moessbauer, Felix @ 2022-03-03 8:18 UTC (permalink / raw)
To: isar-users
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-03 8:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 8:18 Cross compilation of kernel modules for distro kernels Moessbauer, Felix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox