summaryrefslogtreecommitdiff
path: root/guix/build-system
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2021-09-14 23:27:36 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2021-09-14 23:27:36 +0200
commitc8e2358cca79f24a0f1183d806e9dd00d6951712 (patch)
tree302febeb7628982af143a03b9dd173c773e1f4a6 /guix/build-system
parenta72519489f0178051b7049d5793d95d070ebef86 (diff)
downloadguix-patches-c8e2358cca79f24a0f1183d806e9dd00d6951712.tar
guix-patches-c8e2358cca79f24a0f1183d806e9dd00d6951712.tar.gz
build-system: linux-module: Support source-directory.
As with guile-build-system, the module to be build need not necessarily live at the root of the build tree. * guix/build/linux-module-build-system.scm (build, install): Add source-directory argument and append it to "M" variable when invoking make. * guix/build-system/linux-module.scm (linux-module-build): Add source-directory argument.
Diffstat (limited to 'guix/build-system')
-rw-r--r--guix/build-system/linux-module.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/build-system/linux-module.scm b/guix/build-system/linux-module.scm
index fc3d959ce7..33bc8c95df 100644
--- a/guix/build-system/linux-module.scm
+++ b/guix/build-system/linux-module.scm
@@ -158,6 +158,7 @@
(outputs '("out"))
(make-flags ''())
(system (%current-system))
+ (source-directory ".")
(guile #f)
(substitutable? #t)
(imported-modules
@@ -175,7 +176,8 @@
((source)
source)
(source
- source))
+ source))
+ #:source-directory ,source-directory
#:search-paths ',(map search-path-specification->sexp
search-paths)
#:phases ,phases