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:
Brian Kubisiak 2026-01-03 12:56:29 -08:00 committed by Vagrant Cascadian
parent 25b63bc43b
commit 06d72239c1
No known key found for this signature in database
GPG key ID: DC518FC87F9716AA

View file

@ -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