Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 1 | # Copyright lowRISC contributors. |
| 2 | # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
| 5 | # Meson RISCV toolchain configuration. |
Sam Elliott | 4cac9ec | 2020-06-03 11:53:04 +0100 | [diff] [blame] | 6 | # |
| 7 | # NOTE: If you're using a toolchain since version 20200602-1, it is likely that |
| 8 | # you are using the meson toolchain configuration within the toolchain |
| 9 | # install, rather than this file. This file remains mostly for legacy |
| 10 | # reasons, and will eventually be removed. |
Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 11 | |
| 12 | [binaries] |
| 13 | c = '/tools/riscv/bin/riscv32-unknown-elf-gcc' |
| 14 | cpp = '/tools/riscv/bin/riscv32-unknown-elf-g++' |
| 15 | ar = '/tools/riscv/bin/riscv32-unknown-elf-ar' |
| 16 | ld = '/tools/riscv/bin/riscv32-unknown-elf-ld' |
| 17 | objdump = '/tools/riscv/bin/riscv32-unknown-elf-objdump' |
| 18 | objcopy = '/tools/riscv/bin/riscv32-unknown-elf-objcopy' |
| 19 | strip = '/tools/riscv/bin/riscv32-unknown-elf-strip' |
Philipp Wagner | a889e7c | 2020-08-31 22:48:27 +0100 | [diff] [blame] | 20 | as = '/tools/riscv/bin/riscv32-unknown-elf-as' |
Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 21 | |
| 22 | [properties] |
| 23 | has_function_printf = false |
| 24 | c_args = [ |
Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 25 | '-mabi=ilp32', |
| 26 | '-march=rv32imc', |
Sam Elliott | 58d285f | 2019-11-29 11:58:29 +0000 | [diff] [blame] | 27 | '-mcmodel=medany'] |
Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 28 | |
| 29 | [build_machine] |
| 30 | system = 'linux' |
| 31 | cpu_family = 'x86' |
| 32 | endian = 'little' |
| 33 | |
| 34 | [host_machine] |
| 35 | system = 'bare metal' |
| 36 | cpu_family = 'riscv32' |
| 37 | cpu = 'ibex' |
| 38 | endian = 'little' |