help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom kernel


From: Dmitri Anikin
Subject: Re: Custom kernel
Date: Mon, 05 Dec 2016 08:58:07 +0000

December 2, 2016 2:50 PM, address@hidden wrote:
> Hello Dmitri,
> 
> "Dmitri Anikin" <address@hidden> skribis:
> 
>> Is it possible to pass custom patches and kernel config file to be used for 
>> linux-libre package?
> 
> It is possible, yes.
> 
> If you look at (gnu packages linux), you’ll find this:
> 
> (define* (kernel-config arch #:key variant)
> "Return the absolute file name of the Linux-Libre build configuration file
> for ARCH and optionally VARIANT, or #f if there is no such configuration."
> …)
> 
> (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
> …))
> 
> and later:
> 
> (define-public linux-libre
> (make-linux-libre "4.8.11"
> "04h3n3lw563i4yhxfkxrrwjvafd3af730l1ih9kqv7qwkm0psy7r"
> %intel-compatible-systems
> #:configuration-file kernel-config))
> 
> Currently ‘make-linux-libre’ is not public, but we could probably make
> it public (David, WDYT?). In the meantime, in your own module, you can
> do:
> 
> (define make-linux-libre
> ;; It’s private but I wanna use it anyway!
> (@@ (gnu packages linux) make-linux-libre))
> 
> HTH!
> 
> Ludo’.

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/x7bpi24wn99xf79vsf28mblnihxxdfid-linux-libre-4.8-gnu.tar.xz'
>@ build-failed 
>/gnu/store/r6lja7k5y2984kbzzkz94fzsmbhfbs9g-linux-libre-4.8-gnu.tar.xz.drv - 1 
>builder for 
>`/gnu/store/r6lja7k5y2984kbzzkz94fzsmbhfbs9g-linux-libre-4.8-gnu.tar.xz.drv' 
>failed to produce output path 
>`/gnu/store/x7bpi24wn99xf79vsf28mblnihxxdfid-linux-libre-4.8-gnu.tar.xz'
>cannot build derivation 
>`/gnu/store/zganmnxjjxs1w1wc19r4nd03xw7fbs24-linux-libre-anarki-4.8.drv': 1 
>dependencies couldn't be built
>guix build: error: build failed: build of 
>`/gnu/store/zganmnxjjxs1w1wc19r4nd03xw7fbs24-linux-libre-anarki-4.8.drv' failed




reply via email to

[Prev in Thread] Current Thread [Next in Thread]