Subject: Re: [bug#37868] [PATCH v8] system: Add kernel-module-packages to operating-system.

From: Ludovic Courtès <[email-masked]>
Date: Tue, 17 Mar 2020 10:29:08 +0100

Danny Milosavljevic <[email-masked]> skribis:

> On Mon, 16 Mar 2020 10:55:57 +0100
> Mathieu Othacehe <[email-masked]> wrote:
>
>> --8<---------------cut here---------------start------------->8---
>> guix system: error: gnu/packages/linux.scm:886:2: [email-masked]: build system `linux-module' does not support cross builds
>> --8<---------------cut here---------------end--------------->8---
>> 
>> This is not caused by your patch, but it prevents me from testing :(
>
> That's too bad.
>
> I tried to preserve cross-compilation in guix/build-system/linux-module.scm
> but apparently I missed something.  Sorry!
>
> It could just be the
>
>   (not target)                               ;XXX: no cross-compilation

Yes, it means that ‘linux-module-build-system’ does not return a bag
when cross-compiling.

See ‘gnu-build-system’ for how to support cross-compilation.

In the meantime, Mathieu, perhaps you can test system cross-compilation
by using a ‘computed-file’ (instead of a package) as a fake package
providing modules?

Thanks,
Ludo’.