mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
gnu: binutils-mesboot0: parameterize architecture
This commit is contained in:
parent
65972229ec
commit
dac195c8f1
1 changed files with 8 additions and 3 deletions
|
@ -1359,16 +1359,21 @@ (define binutils-mesboot1
|
||||||
(name "binutils-mesboot1")
|
(name "binutils-mesboot1")
|
||||||
(native-inputs (%boot-mesboot0-inputs))
|
(native-inputs (%boot-mesboot0-inputs))
|
||||||
(arguments
|
(arguments
|
||||||
|
(let ((triplet (match (%current-system)
|
||||||
|
((or "armhf-linux" "aarch64-linux")
|
||||||
|
"arm-unknown-linux-gnu")
|
||||||
|
((or "i686-linux" "x86_64-linux")
|
||||||
|
"i686-unknown-linux-gnu"))))
|
||||||
(substitute-keyword-arguments (package-arguments binutils-mesboot0)
|
(substitute-keyword-arguments (package-arguments binutils-mesboot0)
|
||||||
((#:configure-flags configure-flags)
|
((#:configure-flags configure-flags)
|
||||||
'(let ((out (assoc-ref %outputs "out")))
|
'(let ((out (assoc-ref %outputs "out")))
|
||||||
`("--disable-nls"
|
`("--disable-nls"
|
||||||
"--disable-shared"
|
"--disable-shared"
|
||||||
"--disable-werror"
|
"--disable-werror"
|
||||||
"--build=i686-unknown-linux-gnu"
|
,(string-append "--build=" #$triplet)
|
||||||
"--host=i686-unknown-linux-gnu"
|
,(string-append "--host=" #$triplet)
|
||||||
"--with-sysroot=/"
|
"--with-sysroot=/"
|
||||||
,(string-append "--prefix=" out))))))))
|
,(string-append "--prefix=" out)))))))))
|
||||||
|
|
||||||
(define gnu-make-mesboot
|
(define gnu-make-mesboot
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue