From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 15 17:03:02 2020 Received: (at 37868) by debbugs.gnu.org; 15 Mar 2020 21:03:03 +0000 Received: from localhost ([127.0.0.1]:35693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jDaPW-0008Ud-Mv for submit@debbugs.gnu.org; Sun, 15 Mar 2020 17:03:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jDaPQ-0008U4-TB for 37868@debbugs.gnu.org; Sun, 15 Mar 2020 17:03:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jDaPJ-0000DC-1Z; Sun, 15 Mar 2020 17:02:49 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41598 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jDaPH-0004to-Fs; Sun, 15 Mar 2020 17:02:47 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Danny Milosavljevic Subject: Re: [PATCH v8] system: Add kernel-module-packages to operating-system. References: <20200227135146.5701-1-dannym@scratchpost.org> <20200227155029.2542-1-dannym@scratchpost.org> <20200314194055.6d857037@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 26 =?utf-8?Q?Vent=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 15 Mar 2020 22:02:45 +0100 In-Reply-To: <20200314194055.6d857037@scratchpost.org> (Danny Milosavljevic's message of "Sat, 14 Mar 2020 19:40:55 +0100") Message-ID: <8736a9ib62.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 37868 Cc: Mark H Weaver , 37868@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Danny Milosavljevic skribis: > The only part I'm still unsure about is: > > ;; TODO: system, target. > (profile-derivation > (packages->manifest > (cons kernel modules)) > #:hooks (list linux-module-database) > #:locales? #f > #:allow-collisions? #f > #:relative-symlinks? #t)) > > Will Guix do the derivation (especially the invocation of depmod) for the > intended system and target? I would just write a test OS definition, and then run: ./pre-inst-env guix system build test.scm -nd -s armhf-linux From there, you can inspect the =E2=80=98linux-module-database=E2=80=99 der= ivation, check its system type, and check the kmod referred to in its =E2=80=9C-buil= der=E2=80=9D file (is it the file name of the armhf-linux kmod?). Likewise for cross-compilation. HTH! Ludo=E2=80=99.