mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
guix: Add target-avr?.
* guix/utils.scm (target-avr?): New procedure. * tests/utils.scm: Add tests for target-avr? procedure. Change-Id: Iaa0fa97a2b6bc45d45f907f43157f1548a0ba3fa Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
be5ec2ebb4
commit
520e3d267e
2 changed files with 18 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
|
||||
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
|
||||
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
|
||||
;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -329,6 +330,17 @@ skip these tests."
|
|||
;; However, it isn't 32-bit.
|
||||
,(format #f "x86_~a-linux-gnu" (expt 2 109)))))
|
||||
|
||||
(test-equal "target-avr?"
|
||||
'(#t #t #t #f #f)
|
||||
(map target-avr?
|
||||
'("avr" "avr-unknown-none"
|
||||
;; In addition LLVM also uses this form.
|
||||
"avr-unknown-unknown"
|
||||
;; The AVR32 architecture also was made by Atmel/Microchip but it
|
||||
;; does not resemble the AVR family, they aren't compatible in any
|
||||
;; way.
|
||||
"avr32" "avr32-unknown-none")))
|
||||
|
||||
(test-end)
|
||||
|
||||
(false-if-exception (delete-file temp-file))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue