1
0
mirror of https://github.com/olofk/serv.git synced 2026-01-11 23:42:50 +00:00

Allow for a configurable toolchain prefix.

This commit is contained in:
Bruno Flores 2020-10-24 12:04:41 +00:00 committed by Olof Kindgren
parent fe90ff7f97
commit 731ca8bb45

View File

@ -1,7 +1,9 @@
TOOLCHAIN_PREFIX=riscv64-unknown-elf-
%.elf: %.S link.ld
riscv64-unknown-elf-gcc -nostartfiles -march=rv32i -mabi=ilp32 -Tlink.ld -o$@ $<
$(TOOLCHAIN_PREFIX)gcc -nostartfiles -march=rv32i -mabi=ilp32 -Tlink.ld -o$@ $<
%.bin: %.elf
riscv64-unknown-elf-objcopy -O binary $< $@
$(TOOLCHAIN_PREFIX)objcopy -O binary $< $@
%.hex: %.bin
python3 makehex.py $< 2048 > $@