1
0
mirror of https://github.com/olofk/serv.git synced 2026-02-05 07:24:40 +00:00

Enable zicsr flag for GCC

This commit is contained in:
Olof Kindgren
2025-01-28 23:13:36 +01:00
parent 01e74ef7fd
commit 842c2df0ca

View File

@@ -1,7 +1,7 @@
TOOLCHAIN_PREFIX?=riscv64-unknown-elf-
%.elf: %.S link.ld
$(TOOLCHAIN_PREFIX)gcc -nostartfiles -nostdlib -march=rv32i -mabi=ilp32 -Tlink.ld -o$@ $<
$(TOOLCHAIN_PREFIX)gcc -nostartfiles -nostdlib -march=rv32i_zicsr -mabi=ilp32 -Tlink.ld -o$@ $<
%.bin: %.elf
$(TOOLCHAIN_PREFIX)objcopy -O binary $< $@
%.hex: %.bin