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' |
| 20 | |
| 21 | [properties] |
| 22 | has_function_printf = false |
| 23 | c_args = [ |
Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 24 | '-mabi=ilp32', |
| 25 | '-march=rv32imc', |
Sam Elliott | 58d285f | 2019-11-29 11:58:29 +0000 | [diff] [blame] | 26 | '-mcmodel=medany'] |
Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 27 | |
| 28 | [build_machine] |
| 29 | system = 'linux' |
| 30 | cpu_family = 'x86' |
| 31 | endian = 'little' |
| 32 | |
| 33 | [host_machine] |
| 34 | system = 'bare metal' |
| 35 | cpu_family = 'riscv32' |
| 36 | cpu = 'ibex' |
| 37 | endian = 'little' |