mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: linux-libre: Use kmod.
* gnu/packages/linux.scm (make-linux-libre): Use kmod.
This commit is contained in:
parent
3129b9c2b1
commit
78edccccaf
1 changed files with 3 additions and 3 deletions
|
@ -296,7 +296,7 @@ (define* (make-linux-libre version hash supported-systems
|
|||
`(("perl" ,perl)
|
||||
("bc" ,bc)
|
||||
("openssl" ,openssl)
|
||||
("module-init-tools" ,module-init-tools)
|
||||
("kmod" ,kmod)
|
||||
,@(let ((conf (configuration-file
|
||||
(system->linux-architecture
|
||||
(or (%current-target-system)
|
||||
|
@ -355,7 +355,7 @@ (define* (make-linux-libre version hash supported-systems
|
|||
(lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(moddir (string-append out "/lib/modules"))
|
||||
(mit (assoc-ref (or native-inputs inputs) "module-init-tools")))
|
||||
(kmod (assoc-ref (or native-inputs inputs) "kmod")))
|
||||
(mkdir-p moddir)
|
||||
(for-each (lambda (file)
|
||||
(copy-file file
|
||||
|
@ -363,7 +363,7 @@ (define* (make-linux-libre version hash supported-systems
|
|||
(find-files "." "^(bzImage|zImage|vmlinuz|System\\.map)$"))
|
||||
(copy-file ".config" (string-append out "/config"))
|
||||
(zero? (system* "make"
|
||||
(string-append "DEPMOD=" mit "/sbin/depmod")
|
||||
(string-append "DEPMOD=" kmod "/bin/depmod")
|
||||
(string-append "MODULE_DIR=" moddir)
|
||||
(string-append "INSTALL_PATH=" out)
|
||||
(string-append "INSTALL_MOD_PATH=" out)
|
||||
|
|
Loading…
Reference in a new issue