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:
parent
fe90ff7f97
commit
731ca8bb45
@ -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 > $@
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user