mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-28 03:51:53 +02:00
gnu: cross-base: Add cross-compiling support for loongarch64.
gnu/packages/cross-base.scm (cross-kernel-headers/deprecated, cross-kernel-headers*): When target loongarch64, use linux-libre-headers-5.19.17. Change-Id: Ib144ebf86428dddd92f5b899dc241a428f8dc374
This commit is contained in:
committed by
Zheng Junjie
parent
8c4af44d12
commit
40f5d73395
@@ -418,7 +418,10 @@ target that libc."
|
||||
|
||||
(define* (cross-kernel-headers/deprecated target
|
||||
#:optional
|
||||
(linux-headers linux-libre-headers)
|
||||
(linux-headers
|
||||
(if (target-loongarch64? target)
|
||||
linux-libre-headers-5.19.17
|
||||
linux-libre-headers))
|
||||
(xgcc (cross-gcc target))
|
||||
(xbinutils (cross-binutils target)))
|
||||
(warning (G_ "'cross-kernel-headers' must be used with keyword arguments~%"))
|
||||
@@ -493,7 +496,9 @@ the base compiler. Use XBINUTILS as the associated cross-Binutils."
|
||||
|
||||
(define* (cross-kernel-headers* target
|
||||
#:key
|
||||
(linux-headers linux-libre-headers)
|
||||
(linux-headers (if (target-loongarch64? target)
|
||||
linux-libre-headers-5.19.17
|
||||
linux-libre-headers))
|
||||
(xgcc (cross-gcc target))
|
||||
(xbinutils (cross-binutils target)))
|
||||
"Return headers depending on TARGET."
|
||||
|
||||
Reference in New Issue
Block a user