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

From: Mathieu Othacehe <[email-masked]>
Date: Wed, 18 Mar 2020 15:50:12 +0100

Hello Danny,

> It could just be the
>
>   (not target)                               ;XXX: no cross-compilation
>
> in guix/build-system/linux-module.scm - because the other file should support
> it just fine.

Removing the (not target) is enough to make it build. However, when
running:

--8<---------------cut here---------------start------------->8---
 guix build --target=aarch64-linux-gnu acpi-call-linux-module
--8<---------------cut here---------------end--------------->8---

the produced module does not seem to be cross-compiled:

--8<---------------cut here---------------start------------->8---
mathieu@meru:~/guix$ file /gnu/store/fkk5cd746xxh1nx4qvi7arzhznf37yxw-acpi-call-linux-module-3.17/lib/modules/5.4.25-gnu/extra/acpi_call.ko 
/gnu/store/fkk5cd746xxh1nx4qvi7arzhznf37yxw-acpi-call-linux-module-3.17/lib/modules/5.4.25-gnu/extra/acpi_call.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), BuildID[sha1]=a1d9e0ec7b8ef5096a4e1b5c2e7ca6a8bd524cf9, not stripped
--8<---------------cut here---------------end--------------->8---

Thanks,

Mathieu