From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: custom kernel config Date: Wed, 3 Apr 2019 22:04:04 +0300 Message-ID: <20190403190404.GB1203@macbook41> References: <20190401180434.GF21029@macbook41> <87wokb1pg1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WYTEVAkct0FjGQmd" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:33527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBlBF-0008E1-Es for guix-devel@gnu.org; Wed, 03 Apr 2019 15:04:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBlBD-0003K9-6a for guix-devel@gnu.org; Wed, 03 Apr 2019 15:04:12 -0400 Received: from flashner.co.il ([178.62.234.194]:58268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBlBB-0003GN-Fy for guix-devel@gnu.org; Wed, 03 Apr 2019 15:04:10 -0400 Content-Disposition: inline In-Reply-To: <87wokb1pg1.fsf@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Chris Marusich Cc: guix-devel@gnu.org --WYTEVAkct0FjGQmd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 03, 2019 at 01:08:14AM -0700, Chris Marusich wrote: > Efraim Flashner writes: >=20 > > I'm playing around with the idea of creating a custom kernel >=20 > Cool! I'm curious to know how you're passing the custom config in. Are > you using the #:extra-options keyword argument of the make-linux-libre > procedure? Are you passing in a procedure to generate the entire custom > configuration via the #:configuration-file keyword argument? Something > else? >=20 For the first one I used the #:extra-options route and compiled a list. The second one I tried I created a custom kernel and left #:defconfig as #f and inherited that to add a kconfig to the native-inputs. Once I read a bit more of the kernel documentation it wasn't too bad to create a list of what I needed. tar xf $(guix build linux-libre -S) cd linux-libre touch .config guix environment linux-libre make localmodconfig copy that into .config and fix the formatting make localmodconfig if that works well enough then add "CONFIG_MODULES=3Dy" to .config and you're ready to try it out. Stock kernel on my slow desktop took 243(?) minutes, the custom kernel from localmodconfig took 21 minutes, but I haven't tested it yet. When I try again on my laptop I'm going to go again with #:extra-options since I can define the localmodconfig options as %macbook41-kernel-options and append to it other groups of modules, such as filesystems, efi support, etc. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --WYTEVAkct0FjGQmd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlylA6AACgkQQarn3Mo9 g1G+wQ//VqT3M4E1jEvQmOkXwGvq7N3J4fwp+8NdyiBYI1fKSyjyPwe2Oe1ZvDCE G3xspPpRCnIyowcGmnAUlkwG8TWlfMjQBV5RzY/SNn9Mqd1l3kZnhG0qHlF7s+tQ ea42daVFlt6I+LjAuPhgG7+9ebLjB4JIbSaPsjLHKJDK2IYL4zvH4f1PRRSTrTsB zY0xMzxNRVPiJNlfFdySSaVLS8VM/4+OhhZUDH/E8bngfPXj2H8RjiOO80Elu4Hj Z8BYtNSqIFQt5gxTXWp8aimzbd0uzZcbw+1mPpLENfuEUl0AnSXvAYxDe7nfvWXa /FgV/yxfv6yDCtxzHrHSx2778yiR74asTFUlz7UGa590748981UtKcBMVXkQm3Z+ Na+Sp3ux/PZOD0lZMzTNn0v2n2QsZ2wPTCxVHLg4QRvcUv5SyBdHXvlAeeZfqViP GodDLd+5frqQwE+eNMM803E23uYiqg3UktvxKwphhnubavpheB7CtkmX9WouosSZ QhGfLDeZZ/ZJyw4Cp49r/P7JRS7UfgSZLksRwBr9SM9uQcOlbxvwNigV1GcIWQ9w C2D6MvTv/FUoIy1R3fgddtqpdXwlfJkCkrV8f+4s/ZjKxLLI2JJ9ZscTD6hNKNCt kwiydhBvUFN2VNmOvKzV5Zej5mrkeS0Noh5ABUcqCvVdiK3//pM= =/HWh -----END PGP SIGNATURE----- --WYTEVAkct0FjGQmd--