[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to customize the kernel
From: |
Vincent Legoll |
Subject: |
Re: How to customize the kernel |
Date: |
Mon, 18 Dec 2017 14:45:47 +0100 |
Hello,
On Mon, Dec 18, 2017 at 1:21 PM, Marius Bakke <address@hidden> wrote:
> Here is my approach:
>
> --8<---------------cut here---------------end--------------->8---
> (define-module (my packages)
> #:use-module (gnu packages linux))
>
> (define kernel-config
> (string-append (dirname (current-filename)) "/kernel.config"))
>
> (define-public my-kernel
> (package
> (inherit linux-libre)
> (native-inputs
> `(("kconfig" ,kernel-config)
> ,@(alist-delete "kconfig"
> (package-native-inputs linux-libre))))))
>
> (use-modules (my packages))
> (operating-system
> [...]
> (kernel my-kernel)
> --8<---------------cut here---------------end--------------->8---
The above should be put somewhere in the doc, faq, maybe
in a sample system config, or whatever.
Early adopters will probably want to do just that (at least I did,
when I tried GuixSD for the first time).
--
Vincent Legoll