summaryrefslogtreecommitdiff
path: root/guix/build
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2020-02-18 10:42:06 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2020-02-25 10:22:19 +0100
commit12f0aefd1418443823450fdd111259269ad3d9cb (patch)
treed98a5c79e6462f414710e89bc6a903d1441e999f /guix/build
parent2a9521f7cc584caf65ef50b1d020722971a3b1e2 (diff)
downloadgnu-guix-12f0aefd1418443823450fdd111259269ad3d9cb.tar
gnu-guix-12f0aefd1418443823450fdd111259269ad3d9cb.tar.gz
build-system/linux-module: Disable depmod.
* guix/build/linux-module-build-system.scm (install): Disable depmod.
Diffstat (limited to 'guix/build')
-rw-r--r--guix/build/linux-module-build-system.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/guix/build/linux-module-build-system.scm b/guix/build/linux-module-build-system.scm
index cd76df2de7..8145d5a724 100644
--- a/guix/build/linux-module-build-system.scm
+++ b/guix/build/linux-module-build-system.scm
@@ -60,15 +60,18 @@
;; part.
(define* (install #:key inputs native-inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
- (moddir (string-append out "/lib/modules"))
- (kmod (assoc-ref (or native-inputs inputs) "kmod")))
+ (moddir (string-append out "/lib/modules")))
;; Install kernel modules
(mkdir-p moddir)
(invoke "make" "-C"
(string-append (assoc-ref inputs "linux-module-builder")
"/lib/modules/build")
(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 "INSTALL_PATH=" out)
(string-append "INSTALL_MOD_PATH=" out)