mirror of
https://github.com/olofk/serv.git
synced 2025-04-19 11:34:42 -04:00
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
11 lines
287 B
Makefile
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
|