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. |
| 6 | |
| 7 | [binaries] |
| 8 | c = '/tools/riscv/bin/riscv32-unknown-elf-gcc' |
| 9 | cpp = '/tools/riscv/bin/riscv32-unknown-elf-g++' |
| 10 | ar = '/tools/riscv/bin/riscv32-unknown-elf-ar' |
| 11 | ld = '/tools/riscv/bin/riscv32-unknown-elf-ld' |
| 12 | objdump = '/tools/riscv/bin/riscv32-unknown-elf-objdump' |
| 13 | objcopy = '/tools/riscv/bin/riscv32-unknown-elf-objcopy' |
| 14 | strip = '/tools/riscv/bin/riscv32-unknown-elf-strip' |
| 15 | |
| 16 | [properties] |
| 17 | has_function_printf = false |
| 18 | c_args = [ |
| 19 | '-fvisibility=hidden', |
| 20 | '-g', |
| 21 | '-mabi=ilp32', |
| 22 | '-march=rv32imc', |
| 23 | '-mcmodel=medany', |
| 24 | '-nostartfiles', |
| 25 | '-nostdlib', |
| 26 | '-Os', |
| 27 | '-static', |
| 28 | '-Wall', |
| 29 | '-Werror'] |
| 30 | c_link_args = ['-nostdlib'] |
| 31 | |
| 32 | [build_machine] |
| 33 | system = 'linux' |
| 34 | cpu_family = 'x86' |
| 35 | endian = 'little' |
| 36 | |
| 37 | [host_machine] |
| 38 | system = 'bare metal' |
| 39 | cpu_family = 'riscv32' |
| 40 | cpu = 'ibex' |
| 41 | endian = 'little' |