summaryrefslogtreecommitdiff
path: root/guix/build/linux-module-build-system.scm
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-02-26 22:13:11 +0100
committerMarius Bakke <mbakke@fastmail.com>2020-02-26 22:13:11 +0100
commit7fe962788ac330fce18d7cc39f613bb1f961d6ea (patch)
treed8f61f1fb2263d9186157202725ca8fe7b7dd896 /guix/build/linux-module-build-system.scm
parent9844848b23860136da54193b725b6653b4e9d8ee (diff)
parent2e4011465b6c0757c45ddf118c9f406df045b376 (diff)
Merge branch 'master' into staging
Diffstat (limited to 'guix/build/linux-module-build-system.scm')
-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)