From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dmitri Anikin" Subject: Re: Custom kernel Date: Mon, 05 Dec 2016 08:58:07 +0000 Message-ID: <34aa4e4eb2824f0087fa15320b5d81e2@mail.teknik.io> References: <87d1hafkr7.fsf@gnu.org> <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]:52844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDp6F-000428-P3 for help-guix@gnu.org; Mon, 05 Dec 2016 03:58:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDp6C-00061r-Mu for help-guix@gnu.org; Mon, 05 Dec 2016 03:58:15 -0500 Received: from mail.teknik.io ([50.247.95.113]:57806) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cDp6C-00061L-DQ for help-guix@gnu.org; Mon, 05 Dec 2016 03:58:12 -0500 In-Reply-To: <87d1hafkr7.fsf@gnu.org> 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: help-guix@gnu.org December 2, 2016 2:50 PM, ludo@gnu.org wrote:=0A> Hello Dmitri,=0A> =0A> = "Dmitri Anikin" skribis:=0A> =0A>> Is it possible to p= ass custom patches and kernel config file to be used for linux-libre pack= age?=0A> =0A> It is possible, yes.=0A> =0A> If you look at (gnu packages = linux), you=E2=80=99ll find this:=0A> =0A> (define* (kernel-config arch #= :key variant)=0A> "Return the absolute file name of the Linux-Libre build= configuration file=0A> for ARCH and optionally VARIANT, or #f if there i= s no such configuration."=0A> =E2=80=A6)=0A> =0A> (define* (make-linux-li= bre version hash supported-systems=0A> #:key=0A> ;; A function that takes= an arch and a variant.=0A> ;; See kernel-config for an example.=0A> (ext= ra-version #f)=0A> (configuration-file #f)=0A> (defconfig "defconfig")=0A= > (extra-options %default-extra-linux-options)=0A> (patches (list %boot-l= ogo-patch)))=0A> (package=0A> =E2=80=A6))=0A> =0A> and later:=0A> =0A> (d= efine-public linux-libre=0A> (make-linux-libre "4.8.11"=0A> "04h3n3lw563i= 4yhxfkxrrwjvafd3af730l1ih9kqv7qwkm0psy7r"=0A> %intel-compatible-systems= =0A> #:configuration-file kernel-config))=0A> =0A> Currently =E2=80=98mak= e-linux-libre=E2=80=99 is not public, but we could probably make=0A> it p= ublic (David, WDYT?). In the meantime, in your own module, you can=0A> do= :=0A> =0A> (define make-linux-libre=0A> ;; It=E2=80=99s private but I wan= na use it anyway!=0A> (@@ (gnu packages linux) make-linux-libre))=0A> =0A= > HTH!=0A> =0A> Ludo=E2=80=99.=0A=0AWhen I try guix build -f linux.scm --= no-build-hook I get this error=0A>source is under 'linux-4.8'=0A>applying= '/gnu/store/yp9xzrpkcsy7x9qrnhna5zycb4h1qvl8-reiser4-for-linux-4.8.0.pat= ch'...=0A>applying '/gnu/store/dhq2gd73qaqirc6a4pj5yr537s76sj36-patch-4.8= -pf8.patch'...=0A>builder for `/gnu/store/r6lja7k5y2984kbzzkz94fzsmbhfbs9= g-linux-libre-4.8-gnu.tar.xz.drv' failed to produce output path `/gnu/sto= re/x7bpi24wn99xf79vsf28mblnihxxdfid-linux-libre-4.8-gnu.tar.xz'=0A>@ buil= d-failed /gnu/store/r6lja7k5y2984kbzzkz94fzsmbhfbs9g-linux-libre-4.8-gnu.= tar.xz.drv - 1 builder for `/gnu/store/r6lja7k5y2984kbzzkz94fzsmbhfbs9g-l= inux-libre-4.8-gnu.tar.xz.drv' failed to produce output path `/gnu/store/= x7bpi24wn99xf79vsf28mblnihxxdfid-linux-libre-4.8-gnu.tar.xz'=0A>cannot bu= ild derivation `/gnu/store/zganmnxjjxs1w1wc19r4nd03xw7fbs24-linux-libre-a= narki-4.8.drv': 1 dependencies couldn't be built=0A>guix build: error: bu= ild failed: build of `/gnu/store/zganmnxjjxs1w1wc19r4nd03xw7fbs24-linux-l= ibre-anarki-4.8.drv' failed