mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +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")
|
||||
(native-inputs (%boot-mesboot0-inputs))
|
||||
(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)
|
||||
((#:configure-flags configure-flags)
|
||||
'(let ((out (assoc-ref %outputs "out")))
|
||||
`("--disable-nls"
|
||||
"--disable-shared"
|
||||
"--disable-werror"
|
||||
"--build=i686-unknown-linux-gnu"
|
||||
"--host=i686-unknown-linux-gnu"
|
||||
,(string-append "--build=" #$triplet)
|
||||
,(string-append "--host=" #$triplet)
|
||||
"--with-sysroot=/"
|
||||
,(string-append "--prefix=" out))))))))
|
||||
,(string-append "--prefix=" out)))))))))
|
||||
|
||||
(define gnu-make-mesboot
|
||||
(package
|
||||
|
|
Loading…
Reference in a new issue