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.
This commit is contained in:
parent
82c865c41a
commit
934488ccd3
|
@ -78,12 +78,18 @@
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build gnu-build-system)
|
`(#:modules ((guix build gnu-build-system)
|
||||||
(guix build utils)
|
(guix build utils)
|
||||||
(srfi srfi-1))
|
(srfi srfi-1)
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
'((guix build gnu-cross-build))
|
||||||
|
'()))
|
||||||
#:phases (alist-replace
|
#:phases (alist-replace
|
||||||
'build ,(build-phase (%current-system))
|
'build ,(build-phase (%current-system))
|
||||||
(alist-replace
|
(alist-replace
|
||||||
'install ,install-phase
|
'install ,install-phase
|
||||||
(alist-delete 'configure %standard-phases)))
|
(alist-delete 'configure
|
||||||
|
,(if (%current-target-system)
|
||||||
|
'%standard-cross-phases
|
||||||
|
'%standard-phases))))
|
||||||
#:tests? #f))
|
#:tests? #f))
|
||||||
(synopsis "GNU Linux-Libre kernel headers")
|
(synopsis "GNU Linux-Libre kernel headers")
|
||||||
(description "Headers of the Linux-Libre kernel.")
|
(description "Headers of the Linux-Libre kernel.")
|
||||||
|
|
Loading…
Reference in New Issue