• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2
3source "$(dirname -- "$0")"/run_integration.sh
4
5# Toolchains for little-endian, 64-bit ARMv8 for GNU/Linux systems
6function set_aarch64-linux-gnu() {
7  TOOLCHAIN=LINARO
8  TARGET=aarch64-linux-gnu
9  QEMU_ARCH=aarch64
10}
11
12# Toolchains for little-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
13function set_arm-linux-gnueabihf() {
14  TOOLCHAIN=LINARO
15  TARGET=arm-linux-gnueabihf
16  QEMU_ARCH=arm
17}
18
19# Toolchains for little-endian, 32-bit ARMv8 for GNU/Linux systems
20function set_armv8l-linux-gnueabihf() {
21  TOOLCHAIN=LINARO
22  TARGET=armv8l-linux-gnueabihf
23  QEMU_ARCH=arm
24}
25
26# Toolchains for little-endian, soft-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
27function set_arm-linux-gnueabi() {
28  TOOLCHAIN=LINARO
29  TARGET=arm-linux-gnueabi
30  QEMU_ARCH=arm
31}
32
33# Toolchains for big-endian, 64-bit ARMv8 for GNU/Linux systems
34function set_aarch64_be-linux-gnu() {
35  TOOLCHAIN=LINARO
36  TARGET=aarch64_be-linux-gnu
37  QEMU_ARCH=DISABLED
38}
39
40# Toolchains for big-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
41function set_armeb-linux-gnueabihf() {
42  TOOLCHAIN=LINARO
43  TARGET=armeb-linux-gnueabihf
44  QEMU_ARCH=DISABLED
45}
46
47# Toolchains for big-endian, soft-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
48function set_armeb-linux-gnueabi() {
49  TOOLCHAIN=LINARO
50  TARGET=armeb-linux-gnueabi
51  QEMU_ARCH=DISABLED
52}
53
54function set_mips32() {
55  TOOLCHAIN=CODESCAPE
56  TARGET=mips32
57  QEMU_ARCH=mips
58}
59
60function set_mips32el() {
61  TOOLCHAIN=CODESCAPE
62  TARGET=mips32el
63  QEMU_ARCH=mipsel
64}
65
66function set_mips64() {
67  TOOLCHAIN=CODESCAPE
68  TARGET=mips64
69  QEMU_ARCH=mips64
70}
71
72function set_mips64el() {
73  TOOLCHAIN=CODESCAPE
74  TARGET=mips64el
75  QEMU_ARCH=mips64el
76}
77
78function set_native() {
79  TOOLCHAIN=NATIVE
80  TARGET=native
81  QEMU_ARCH=""
82}
83
84ENVIRONMENTS="
85  set_aarch64-linux-gnu
86  set_arm-linux-gnueabihf
87  set_armv8l-linux-gnueabihf
88  set_arm-linux-gnueabi
89  set_aarch64_be-linux-gnu
90  set_armeb-linux-gnueabihf
91  set_armeb-linux-gnueabi
92  set_mips32
93  set_mips32el
94  set_mips64
95  set_mips64el
96  set_native
97"
98
99set -e
100
101CMAKE_GENERATOR="Ninja"
102
103for SET_ENVIRONMENT in ${ENVIRONMENTS}; do
104  ${SET_ENVIRONMENT}
105  expand_environment_and_integrate
106done
107