blob: f2137c8f3ef133b5f243a8b3bbb0bf7fa7191855 [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.
Sam Elliott4cac9ec2020-06-03 11:53:04 +01006#
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 Osorio03f2e232019-09-17 19:44:37 -070011
12[binaries]
13c = '/tools/riscv/bin/riscv32-unknown-elf-gcc'
14cpp = '/tools/riscv/bin/riscv32-unknown-elf-g++'
15ar = '/tools/riscv/bin/riscv32-unknown-elf-ar'
16ld = '/tools/riscv/bin/riscv32-unknown-elf-ld'
17objdump = '/tools/riscv/bin/riscv32-unknown-elf-objdump'
18objcopy = '/tools/riscv/bin/riscv32-unknown-elf-objcopy'
19strip = '/tools/riscv/bin/riscv32-unknown-elf-strip'
20
21[properties]
22has_function_printf = false
23c_args = [
Miguel Osorio03f2e232019-09-17 19:44:37 -070024 '-mabi=ilp32',
25 '-march=rv32imc',
Sam Elliott58d285f2019-11-29 11:58:29 +000026 '-mcmodel=medany']
Miguel Osorio03f2e232019-09-17 19:44:37 -070027
28[build_machine]
29system = 'linux'
30cpu_family = 'x86'
31endian = 'little'
32
33[host_machine]
34system = 'bare metal'
35cpu_family = 'riscv32'
36cpu = 'ibex'
37endian = 'little'