help-guix
[Top][All Lists]
Advanced

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

Re: Kernel config


From: Vincent Legoll
Subject: Re: Kernel config
Date: Sun, 17 Jul 2016 20:51:23 +0200

On Sun, Jul 17, 2016 at 7:49 PM, Ludovic Courtès <address@hidden> wrote:
> Vincent Legoll <address@hidden> skribis:
>
>> Would the following work in the mean time ?
>>
>> 1. Adding the following to gnu/packages/linux.scm :
>>
>> (define-public linux-libre-config variant
>>   (package
>>     (inherit linux-libre)
>>     (native-inputs
>>      (let ((conf (kernel-config (or (%current-target-system)
>>                                     (%current-system))
>>                                 #:variant variant)))
>>        `(,@(alist-delete "kconfig" (package-native-inputs linux-libre))
>>          ("kconfig" ,conf))))))
>
> This should roughly work.  However, I think one can already provide
> their own config file with something like:
>
>   (define-public my-own-linux-libre
>     (package
>       (inherit linux-libre)
>       (native-inputs
>         `(("kconfig" ,(local-file "./my-kernel.conf"))
>           ,@(alist-delete "kconfig" (package-native-inputs linux-libre))))))
>
> … which can be dropped in a file in $GUIX_PACKAGE_PATH.
>
> It remains somewhat inconvenient, though.

Yes, that would be simpler.

Does it have to be in root's $GUIX_PACKAGE_PATH, or can guix system reconfigure
work as a user ? That would be a sufficiently good solution, I think...

I'll try it.

-- 
Vincent Legoll



reply via email to

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