From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: Enable modules in Linux configuration. Date: Mon, 31 Jul 2017 23:39:14 +0200 Message-ID: <87379cxp4t.fsf@fastmail.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcIPI-0005ZU-6c for help-guix@gnu.org; Mon, 31 Jul 2017 17:39:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcIPF-0002xL-2i for help-guix@gnu.org; Mon, 31 Jul 2017 17:39:20 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33361) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcIPE-0002wm-Pq for help-guix@gnu.org; Mon, 31 Jul 2017 17:39:16 -0400 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Dmitry Nikolaev , help-guix --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Dmitry Nikolaev writes: > But it looks too complex for me. Is there an easier way to enable > additional modules in Linux configuration? Shouldn't I use "extra-options" > in make-linux-libre function? How could I do that? I suppose we could export the various Linux-Libre variables so that the following (untested) would work: =2D-8<---------------cut here---------------start------------->8--- (use-package-modules linux) (operating-system (kernel (make-linux-libre %linux-libre-version %linux-libre-hash %intel-compatible-systems #:extra-options (cons ("CONFIG_REISER4" . m) %default-extra-linux-options) =2D-8<---------------cut here---------------start------------->8--- It would be a convenient way to add custom options and patches without maintaing a full-blown kernel configuration on the side. Just to cover all bases, here's what I do today for a custom kernel configuration file next to a GuixSD 'config.scm': =20 =2D-8<---------------cut here---------------end--------------->8--- (define-module (my packages) #:use-module (gnu packages linux)) (define kernel-config (string-append (dirname (current-filename)) "/kernel.config")) (define-public my-kernel (package (inherit linux-libre) (native-inputs `(("kconfig" ,kernel-config) ,@(alist-delete "kconfig" (package-native-inputs linux-libre)))))) (use-modules (my packages)) (operating-system [...] (kernel my-kernel) =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAll/o4IACgkQoqBt8qM6 VPq9Dgf9Gjbkkxfs2eLTBJGJPC6AHeq1zjK14CZ11qJ6C7rY54HIJwzBpq6Ivk+q 8FN9MViK+AohUyrcJQn8OPIZm0iSaa6ZbDiX8xeVxBCrL56ec2KON5du5oBEO+bI g2l2YlME6gbUupuAw9Bn41OzElLWsDPpVldrKCAUxcFmT/aSAQj/w8MEkcxPZAEc buKCDoxU9BI1Dl3jrjzQuo1/eWopG4SlyW+RuKA73iUNKmeZv9VfpYJxYnLKG7XB Pr+R0P4wAdCTq/l68Eeti7uiqcDuBmkKmbXckVaSQ8ADQnNxe7wQfA8b7iKFTLqj 9qCILQTNzNZgDHAhPyPDPYWTHy9vpw== =Ux7f -----END PGP SIGNATURE----- --=-=-=--