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: Mon, 05 Dec 2016 10:33:15 +0100 Message-ID: <87bmwqlnz8.fsf@gnu.org> References: <87d1hafkr7.fsf@gnu.org> <60c00abf5ceeeb6cfe571991f4969c87@mail.teknik.io> <34aa4e4eb2824f0087fa15320b5d81e2@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]:59813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDpeE-0000KQ-9r for help-guix@gnu.org; Mon, 05 Dec 2016 04:33:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDpe9-0000mP-Qk for help-guix@gnu.org; Mon, 05 Dec 2016 04:33:22 -0500 In-Reply-To: <34aa4e4eb2824f0087fa15320b5d81e2@mail.teknik.io> (Dmitri Anikin's message of "Mon, 05 Dec 2016 08:58:07 +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 "Dmitri Anikin" skribis: > December 2, 2016 2:50 PM, ludo@gnu.org wrote: >> Hello Dmitri, >>=20 >> "Dmitri Anikin" skribis: >>=20 >>> Is it possible to pass custom patches and kernel config file to be used= for linux-libre package? >>=20 >> It is possible, yes. >>=20 >> If you look at (gnu packages linux), you=E2=80=99ll find this: >>=20 >> (define* (kernel-config arch #:key variant) >> "Return the absolute file name of the Linux-Libre build configuration fi= le >> for ARCH and optionally VARIANT, or #f if there is no such configuration= ." >> =E2=80=A6) >>=20 >> (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)) >>=20 >> and later: >>=20 >> (define-public linux-libre >> (make-linux-libre "4.8.11" >> "04h3n3lw563i4yhxfkxrrwjvafd3af730l1ih9kqv7qwkm0psy7r" >> %intel-compatible-systems >> #:configuration-file kernel-config)) >>=20 >> Currently =E2=80=98make-linux-libre=E2=80=99 is not public, but we could= probably make >> it public (David, WDYT?). In the meantime, in your own module, you can >> do: >>=20 >> (define make-linux-libre >> ;; It=E2=80=99s private but I wanna use it anyway! >> (@@ (gnu packages linux) make-linux-libre)) >>=20 >> HTH! >>=20 >> Ludo=E2=80=99. > > When I try guix build -f linux.scm --no-build-hook I get this error >>source is under 'linux-4.8' >>applying '/gnu/store/yp9xzrpkcsy7x9qrnhna5zycb4h1qvl8-reiser4-for-linux-4= .8.0.patch'... >>applying '/gnu/store/dhq2gd73qaqirc6a4pj5yr537s76sj36-patch-4.8-pf8.patch= '... >>builder for `/gnu/store/r6lja7k5y2984kbzzkz94fzsmbhfbs9g-linux-libre-4.8-= gnu.tar.xz.drv' failed to produce output path `/gnu/store/x7bpi24wn99xf79vs= f28mblnihxxdfid-linux-libre-4.8-gnu.tar.xz' If you look higher in the build log, there=E2=80=99s probably an error mess= age from =E2=80=98patch=E2=80=99 indicating that it failed to apply one of the = patches. Could you check that? You can access the full log by opening the file returned by: guix build --log-file /gnu/store/r6lja7k5y2984kbzzkz94fzsmbhfbs9g-linux-l= ibre-4.8-gnu.tar.xz.drv HTH! Ludo=E2=80=99.