projects/guix·blob java-team · refs

59 lines · 2.3 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2023 Foundation Devices, Inc. <[email protected]>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages cross-toolchain)
20 #:use-module (gnu packages cross-base)
21 #:use-module (gnu packages gcc)
22 #:use-module (guix packages))
23
24;;; Commentary:
25;;;
26;;; This module provides packages for cross compilation toolchains. These
27;;; packages must not be used at the top level to avoid cyclic module
28;;; dependencies caused by the (gnu packages cross-base) module referring to
29;;; to top level bindings from (gnu packages gcc).
30;;;
31;;; The real purpose of these packages is for installation on profiles by users
32;;; and other packages should make use of the toolchain through the usual cross
33;;; compilation methods. For example, by using the `#:target' argument on
34;;; packages or `--target' on the command line.
35
36(define-public gcc-cross-avr-toolchain
37 (cross-gcc-toolchain "avr"))
38
39(define-public gcc-cross-i686-w64-mingw32-toolchain
40 (cross-gcc-toolchain "i686-w64-mingw32"))
41
42(define-public gcc-cross-or1k-elf-toolchain
43 (cross-gcc-toolchain "or1k-elf"))
44
45(define-public gcc-cross-x86_64-w64-mingw32-toolchain-13
46 (cross-gcc-toolchain "x86_64-w64-mingw32"
47 #:base-gcc gcc-13))
48
49(define-public gcc-cross-x86_64-w64-mingw32-toolchain
50 (cross-gcc-toolchain "x86_64-w64-mingw32"))
51
52(define-public gcc-cross-i586-pc-gnu-toolchain
53 (cross-gcc-toolchain "i586-pc-gnu"))
54
55(define-public gcc-cross-x86_64-pc-gnu-toolchain
56 (cross-gcc-toolchain "x86_64-pc-gnu"))
57
58(define-public gcc-cross-powerpc64le-linux-gnu-toolchain
59 (cross-gcc-toolchain "powerpc64le-linux-gnu"))