blob: 95095b61b15cd5238c9036beada19c04bdd8a83c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Intentionally less complete default march so that it's still compatible with RVController's minimum configuration
# (in case someone changed the misa value and wants to decode the new one)
MARCH ?= rv32ezicsr_zicond
.PHONY: all dump load clean
all: misa.hex
misa.o: misa.S
riscv32-none-elf-as -I../rvcontroller-libraries -march=${MARCH} -o misa.o misa.S
misa.elf: misa.o
riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o misa.elf misa.o
dump: misa.elf
riscv32-none-elf-objdump -d misa.elf
misa.hex: misa.elf
riscv32-none-elf-objcopy -O ihex misa.elf misa.hex
load: misa.hex
bash -c "wl-copy < misa.hex"
clean:
rm -f misa.bin misa.elf misa.o
|