QTechOS/riscv.cross
Quantum e50fb2de2c
Initial Commit
Mostly stolen from https://github.com/avdgrinten/riscv-toy-os

Changed load address to 0x45000000 so it would run on real hardware

Played around with GPIO and the watchdog
2022-01-03 19:11:49 -05:00

16 lines
460 B
Text

[binaries]
c = 'riscv64-linux-gnu-gcc'
cpp = 'riscv64-linux-gnu-g++'
[host_machine]
system = 'riscv-qtech-os'
cpu_family = 'riscv'
cpu = 'rv64'
endian = 'little'
[built-in options]
c_args = '-march=rv64gc -mabi=lp64d -mcmodel=medany -ffreestanding'
c_link_args = '-march=rv64gc -mabi=lp64d -mcmodel=medany -nostdlib'
cpp_args = '-march=rv64gc -mabi=lp64d -mcmodel=medany -ffreestanding'
cpp_link_args = '-march=rv64gc -mabi=lp64d -mcmodel=medany -nostdlib'