From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:55703) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDaQV-0004Yf-FY for guix-patches@gnu.org; Sun, 15 Mar 2020 17:04:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDaQU-0005rf-Bz for guix-patches@gnu.org; Sun, 15 Mar 2020 17:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDaQU-0005r6-7F for guix-patches@gnu.org; Sun, 15 Mar 2020 17:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jDaQU-0008WA-1t for guix-patches@gnu.org; Sun, 15 Mar 2020 17:04:02 -0400 Subject: [bug#37868] [PATCH v8] system: Add kernel-module-packages to operating-system. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200227135146.5701-1-dannym@scratchpost.org> <20200227155029.2542-1-dannym@scratchpost.org> <20200314194055.6d857037@scratchpost.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Danny Milosavljevic Cc: Mark H Weaver , 37868@debbugs.gnu.org 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.