blob: c77f563a6611a85a80a2c79bdbdb437e327413a1 [file] [log] [blame]
Miguel Osorio03f2e232019-09-17 19:44:37 -07001# 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]
8c = '/tools/riscv/bin/riscv32-unknown-elf-gcc'
9cpp = '/tools/riscv/bin/riscv32-unknown-elf-g++'
10ar = '/tools/riscv/bin/riscv32-unknown-elf-ar'
11ld = '/tools/riscv/bin/riscv32-unknown-elf-ld'
12objdump = '/tools/riscv/bin/riscv32-unknown-elf-objdump'
13objcopy = '/tools/riscv/bin/riscv32-unknown-elf-objcopy'
14strip = '/tools/riscv/bin/riscv32-unknown-elf-strip'
15
16[properties]
17has_function_printf = false
18c_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']
30c_link_args = ['-nostdlib']
31
32[build_machine]
33system = 'linux'
34cpu_family = 'x86'
35endian = 'little'
36
37[host_machine]
38system = 'bare metal'
39cpu_family = 'riscv32'
40cpu = 'ibex'
41endian = 'little'