diff options
Diffstat (limited to 'assembly/xh3bextm-test/Makefile')
| -rw-r--r-- | assembly/xh3bextm-test/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/assembly/xh3bextm-test/Makefile b/assembly/xh3bextm-test/Makefile new file mode 100644 index 0000000..62a1190 --- /dev/null +++ b/assembly/xh3bextm-test/Makefile @@ -0,0 +1,24 @@ +MARCH ?= rv32imacbzicntr_zicond_zicsr_zifencei_zihintpause_zilsd_zclsd_zabha_zacas_zbkb_zbkx_zcb_zcmp_zcmt + +.PHONY: all dump load clean + +all: xh3bextm-test.hex + +xh3bextm-test.o: xh3bextm-test.S + riscv32-none-elf-as -I../rvcontroller-libraries -march=${MARCH} -o xh3bextm-test.o xh3bextm-test.S + +xh3bextm-test.elf: xh3bextm-test.o + riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o xh3bextm-test.elf xh3bextm-test.o + +dump: xh3bextm-test.elf + riscv32-none-elf-objdump -d xh3bextm-test.elf + +xh3bextm-test.hex: xh3bextm-test.elf + riscv32-none-elf-objcopy -O ihex xh3bextm-test.elf xh3bextm-test.hex + +load: xh3bextm-test.hex + bash -c "wl-copy < xh3bextm-test.hex" + +clean: + rm -f xh3bextm-test.bin xh3bextm-test.elf xh3bextm-test.o + |
