unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#59074] [PATCH] build-system/linux-module: Add #:source-directory to linux-module-build-cross.
@ 2022-11-06  9:13 Christopher Baines
  2022-11-07 20:00 ` Christopher Baines
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Baines @ 2022-11-06  9:13 UTC (permalink / raw)
  To: 59074

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.
---
 guix/build-system/linux-module.scm | 2 ++
 1 file changed, 2 insertions(+)

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 @@ (define* (linux-module-build-cross
           (tests? #f)
           (phases '%standard-phases)
           (system (%current-system))
+          (source-directory ".")
           (substitutable? #t)
           (imported-modules
            %linux-module-build-system-modules)
@@ -229,6 +230,7 @@ (define %build-target-inputs
 
           (linux-module-build #:name #$name
                               #:source #+source
+                              #:source-directory #$source-directory
                               #:system #$system
                               #:target #$target
                               #:arch #$(system->arch (or target system))
-- 
2.37.3





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [bug#59074] [PATCH] build-system/linux-module: Add #:source-directory to linux-module-build-cross.
  2022-11-06  9:13 [bug#59074] [PATCH] build-system/linux-module: Add #:source-directory to linux-module-build-cross Christopher Baines
@ 2022-11-07 20:00 ` Christopher Baines
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Baines @ 2022-11-07 20:00 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 59074-done, 59074

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]


Christopher Baines <mail@cbaines.net> writes:

> 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.
> ---
>  guix/build-system/linux-module.scm | 2 ++
>  1 file changed, 2 insertions(+)

I've gone ahead and pushed this as
da21c5d45f418103bb39061787c90920ee3f36d8.

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-07 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-06  9:13 [bug#59074] [PATCH] build-system/linux-module: Add #:source-directory to linux-module-build-cross Christopher Baines
2022-11-07 20:00 ` Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).