aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-06-15 23:33:56 +0200
committerLudovic Courtès <ludo@gnu.org>2013-06-15 23:39:32 +0200
commit934488ccd38437f23a5c2c36d4633d2cfc0740cc (patch)
tree347c9702dcd8951443a3318497d6df880911f473 /gnu/packages
parent82c865c41a9e61cc4915779e2d6c86305403ce75 (diff)
downloadguix-934488ccd38437f23a5c2c36d4633d2cfc0740cc.tar
guix-934488ccd38437f23a5c2c36d4633d2cfc0740cc.tar.gz
gnu: linux-libre-headers: Allow cross-compilation.
* gnu/packages/linux.scm (linux-libre-headers): Use (guix build gnu-cross-build) and %standard-cross-phases when cross-compiling.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/linux.scm10
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 0708b5cb81..9cd5de82c0 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -78,12 +78,18 @@
(arguments
`(#:modules ((guix build gnu-build-system)
(guix build utils)
- (srfi srfi-1))
+ (srfi srfi-1)
+ ,@(if (%current-target-system)
+ '((guix build gnu-cross-build))
+ '()))
#:phases (alist-replace
'build ,(build-phase (%current-system))
(alist-replace
'install ,install-phase
- (alist-delete 'configure %standard-phases)))
+ (alist-delete 'configure
+ ,(if (%current-target-system)
+ '%standard-cross-phases
+ '%standard-phases))))
#:tests? #f))
(synopsis "GNU Linux-Libre kernel headers")
(description "Headers of the Linux-Libre kernel.")