summaryrefslogtreecommitdiff
path: root/assembly/clmultest/Makefile
blob: c4e7727ebfcdaf7e281bb3b959200e5903db73f8 (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
MARCH ?= rv32imacbzicntr_zicond_zicsr_zifencei_zihintpause_zilsd_zclsd_zabha_zacas_zbkb_zbkx_zcb_zcmp_zcmt_zicboz_zbc

.PHONY: all dump load clean

all: clmultest.hex

clmultest.o: clmultest.S
	riscv32-none-elf-as -I../rvcontroller-libraries -march=${MARCH} -o clmultest.o clmultest.S

clmultest.elf:  clmultest.o
	riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o clmultest.elf clmultest.o

dump: clmultest.elf
	riscv32-none-elf-objdump -d clmultest.elf

clmultest.hex: clmultest.elf
	riscv32-none-elf-objcopy -O ihex clmultest.elf clmultest.hex

load: clmultest.hex
	bash -c "wl-copy < clmultest.hex"

clean:
	rm -f clmultest.hex clmultest.elf clmultest.o