mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: u-boot-tools: Fix cross-compilation.
* gnu/packages/bootloaders.scm (u-boot-tools)[arguments]: Set CROSS_COMPILE when cross-compiling. Change-Id: Ia8a1f5f34a216676a67b776606427e321a821ac2 Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
This commit is contained in:
parent
25b63bc43b
commit
06d72239c1
1 changed files with 9 additions and 1 deletions
|
|
@ -949,8 +949,16 @@ Info manual.")))
|
||||||
(modify-inputs (package-native-inputs u-boot)
|
(modify-inputs (package-native-inputs u-boot)
|
||||||
(prepend python-filelock
|
(prepend python-filelock
|
||||||
python-pycryptodomex))))
|
python-pycryptodomex))))
|
||||||
|
(inputs (list gnutls ncurses/tinfo))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags '("HOSTCC=gcc")
|
`(#:make-flags '("HOSTCC=gcc"
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
(list "CROSS_BUILD_TOOLS=y"
|
||||||
|
(string-append
|
||||||
|
"CROSS_COMPILE="
|
||||||
|
(%current-target-system)
|
||||||
|
"-"))
|
||||||
|
'()))
|
||||||
#:test-target "tcheck"
|
#:test-target "tcheck"
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue