blob: 60747f27270317d81a56421ba9ac57e273aa8803 (
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
.PHONY: all dump load clean
all: zicboztest.hex
zicboztest.o: zicboztest.S
riscv32-none-elf-as -I../rvcontroller-libraries -march=${MARCH} -o zicboztest.o zicboztest.S
zicboztest.elf: zicboztest.o
riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o zicboztest.elf zicboztest.o
dump: zicboztest.elf
riscv32-none-elf-objdump -d zicboztest.elf
zicboztest.hex: zicboztest.elf
riscv32-none-elf-objcopy -O ihex zicboztest.elf zicboztest.hex
load: zicboztest.hex
bash -c "wl-copy < zicboztest.hex"
clean:
rm -f zicboztest.hex zicboztest.elf zicboztest.o
|