serv/sw/Makefile
Olof Kindgren 842c2df0ca
Some checks are pending
Run compliance test suite / RISC-V Compliance Test (push) Waiting to run
Formal verification / Run RISCV-formal verification suite (push) Waiting to run
Run linter / Linter (push) Waiting to run
Build GDS using OpenLANE and sky130 PDK / build-openlane-sky130 (push) Waiting to run
Enable zicsr flag for GCC
2025-03-01 10:32:57 +01:00

11 lines
287 B
Makefile

TOOLCHAIN_PREFIX?=riscv64-unknown-elf-
%.elf: %.S link.ld
$(TOOLCHAIN_PREFIX)gcc -nostartfiles -nostdlib -march=rv32i_zicsr -mabi=ilp32 -Tlink.ld -o$@ $<
%.bin: %.elf
$(TOOLCHAIN_PREFIX)objcopy -O binary $< $@
%.hex: %.bin
python3 makehex.py $< > $@
clean:
rm -f *.elf *.bin *.hex