blob: a6ca9a22c7be4b130538ce1456e7e7575e40e3c3 [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'
Philipp Wagnera889e7c2020-08-31 22:48:27 +010020as = '/tools/riscv/bin/riscv32-unknown-elf-as'
Miguel Osorio03f2e232019-09-17 19:44:37 -070021
22[properties]
23has_function_printf = false
24c_args = [
Miguel Osorio03f2e232019-09-17 19:44:37 -070025 '-mabi=ilp32',
26 '-march=rv32imc',
Sam Elliott58d285f2019-11-29 11:58:29 +000027 '-mcmodel=medany']
Miguel Osorio03f2e232019-09-17 19:44:37 -070028
29[build_machine]
30system = 'linux'
31cpu_family = 'x86'
32endian = 'little'
33
34[host_machine]
35system = 'bare metal'
36cpu_family = 'riscv32'
37cpu = 'ibex'
38endian = 'little'