guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 9b2bb05c7d34890f5b7cb5bda946abfd185204aa
Author: Martin Schitter <[email protected]>
AuthorDate: Sat Oct 11 09:39:37 2025 +0000
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 <[email protected]>
Reviewed-by: Vagrant Cascadian <[email protected]>
Modified-by: Sharlatan Hellseher <[email protected]>
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/bootloaders.scm | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index afde840823..8a091cfcbe 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -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?