aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-11-06 10:11:00 +0100
committerChristopher Baines <mail@cbaines.net>2022-11-06 10:11:00 +0100
commit413ee574ad4d783aa9e1dbd5795c9dae3de0d22f (patch)
treef76248a54d04ee43e05daa5ae6c6fdf1a30408e6
parenta6c90c293d5b0c77d3e1e967546fe0aadc53a102 (diff)
downloadguix-linux-module-cross-add-source-directory.tar
guix-linux-module-cross-add-source-directory.tar.gz
build-system/linux-module: Add #:source-directory to linux-module-build-cross.linux-module-cross-add-source-directory
Otherwise computing cross-compilation derivations for packages (e.g. xpadneo) using the #:source-directory argument fails with this error: Unrecognized keyword: #:source-directory * guix/build-system/linux-module.scm (linux-module-build-cross): Support #:source-directory.
-rw-r--r--guix/build-system/linux-module.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/guix/build-system/linux-module.scm b/guix/build-system/linux-module.scm
index 94a293da13..d6c369d65d 100644
--- a/guix/build-system/linux-module.scm
+++ b/guix/build-system/linux-module.scm
@@ -210,6 +210,7 @@
(tests? #f)
(phases '%standard-phases)
(system (%current-system))
+ (source-directory ".")
(substitutable? #t)
(imported-modules
%linux-module-build-system-modules)
@@ -229,6 +230,7 @@
(linux-module-build #:name #$name
#:source #+source
+ #:source-directory #$source-directory
#:system #$system
#:target #$target
#:arch #$(system->arch (or target system))