build-system/linux-module: Disable depmod.
* guix/build/linux-module-build-system.scm (install): Disable depmod.master
parent
2a9521f7cc
commit
12f0aefd14
|
@ -60,15 +60,18 @@
|
||||||
;; part.
|
;; part.
|
||||||
(define* (install #:key inputs native-inputs outputs #:allow-other-keys)
|
(define* (install #:key inputs native-inputs outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(moddir (string-append out "/lib/modules"))
|
(moddir (string-append out "/lib/modules")))
|
||||||
(kmod (assoc-ref (or native-inputs inputs) "kmod")))
|
|
||||||
;; Install kernel modules
|
;; Install kernel modules
|
||||||
(mkdir-p moddir)
|
(mkdir-p moddir)
|
||||||
(invoke "make" "-C"
|
(invoke "make" "-C"
|
||||||
(string-append (assoc-ref inputs "linux-module-builder")
|
(string-append (assoc-ref inputs "linux-module-builder")
|
||||||
"/lib/modules/build")
|
"/lib/modules/build")
|
||||||
(string-append "M=" (getcwd))
|
(string-append "M=" (getcwd))
|
||||||
(string-append "DEPMOD=" kmod "/bin/depmod")
|
;; Disable depmod because the Guix system's module directory
|
||||||
|
;; is an union of potentially multiple packages. It is not
|
||||||
|
;; possible to use depmod to usefully calculate a dependency
|
||||||
|
;; graph while building only one of those packages.
|
||||||
|
"DEPMOD=true"
|
||||||
(string-append "MODULE_DIR=" moddir)
|
(string-append "MODULE_DIR=" moddir)
|
||||||
(string-append "INSTALL_PATH=" out)
|
(string-append "INSTALL_PATH=" out)
|
||||||
(string-append "INSTALL_MOD_PATH=" out)
|
(string-append "INSTALL_MOD_PATH=" out)
|
||||||
|
|
Reference in New Issue