gnu: u-boot-tools: Keep tests inputs only for x86_64 target.

* gnu/packages/bootloaders.scm (u-boot-tools)[native-inputs]: Apply
condition to include python-coverage, python-pytest, and
python-pytest-xdist only on x86_64 systems.

Change-Id: I1cc9a734b3e8da28e801676111b3377f2a411055
Reviewed-by: Nicolas Graves <ngraves@ngraves.fr>
Reviewed-by: Vagrant Cascadian <vagrant@debian.org>
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Martin Schitter 2025-10-11 09:39:37 +00:00 committed by Sharlatan Hellseher
parent ae63bbec6f
commit 9b2bb05c7d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -927,12 +927,16 @@ Info manual.")))
(inherit u-boot)
(name "u-boot-tools")
(native-inputs
(modify-inputs (package-native-inputs u-boot)
(prepend python-coverage
python-filelock
python-pycryptodomex
python-pytest
python-pytest-xdist)))
(if (string-match "^x86_64-linux" (%current-system))
(modify-inputs (package-native-inputs u-boot)
(prepend python-filelock
python-pycryptodomex
python-coverage
python-pytest
python-pytest-xdist))
(modify-inputs (package-native-inputs u-boot)
(prepend python-filelock
python-pycryptodomex))))
(arguments
`(#:make-flags '("HOSTCC=gcc")
#:test-target "tcheck"
@ -1033,9 +1037,7 @@ CONFIG_TOOLS_KWBIMAGE=n")
(invoke "test/image/test-imagetools.sh"))))
;; Only run full test suite on x86_64 systems, as many tests
;; assume x86_64.
,@(if (string-match "^x86_64-linux"
(or (%current-target-system)
(%current-system)))
,@(if (string-match "^x86_64-linux" (%current-system))
'((add-after 'check 'check-x86
(lambda* (#:key make-flags test-target tests? #:allow-other-keys)
(when tests?