From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Custom kernel Date: Fri, 02 Dec 2016 15:50:20 +0100 Message-ID: <87d1hafkr7.fsf@gnu.org> References: <60c00abf5ceeeb6cfe571991f4969c87@mail.teknik.io> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCpAT-0001AL-AB for help-guix@gnu.org; Fri, 02 Dec 2016 09:50:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCpAS-0000j4-Fy for help-guix@gnu.org; Fri, 02 Dec 2016 09:50:29 -0500 In-Reply-To: <60c00abf5ceeeb6cfe571991f4969c87@mail.teknik.io> (Dmitri Anikin's message of "Thu, 01 Dec 2016 12:34:32 +0000") 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: Dmitri Anikin Cc: help-guix@gnu.org Hello Dmitri, "Dmitri Anikin" skribis: > Is it possible to pass custom patches and kernel config file to be used f= or linux-libre package? It is possible, yes. If you look at (gnu packages linux), you=E2=80=99ll find this: (define* (kernel-config arch #:key variant) "Return the absolute file name of the Linux-Libre build configuration f= ile for ARCH and optionally VARIANT, or #f if there is no such configuration." =E2=80=A6) (define* (make-linux-libre version hash supported-systems #:key ;; A function that takes an arch and a variant. ;; See kernel-config for an example. (extra-version #f) (configuration-file #f) (defconfig "defconfig") (extra-options %default-extra-linux-options) (patches (list %boot-logo-patch))) (package =E2=80=A6)) and later: (define-public linux-libre (make-linux-libre "4.8.11" "04h3n3lw563i4yhxfkxrrwjvafd3af730l1ih9kqv7qwkm0psy7r" %intel-compatible-systems #:configuration-file kernel-config)) Currently =E2=80=98make-linux-libre=E2=80=99 is not public, but we could pr= obably make it public (David, WDYT?). In the meantime, in your own module, you can do: (define make-linux-libre ;; It=E2=80=99s private but I wanna use it anyway! (@@ (gnu packages linux) make-linux-libre)) HTH! Ludo=E2=80=99.