diff options
| author | cheapie <cheapiephp@gmail.com> | 2026-06-19 22:38:28 -0500 |
|---|---|---|
| committer | cheapie <cheapiephp@gmail.com> | 2026-06-19 22:38:28 -0500 |
| commit | 33e4744d1c73c9f5512abb4010e4cc81763ab3a2 (patch) | |
| tree | f690b968f5feeb6e905aa1265c9b4b3584e6a668 /assembly/timer-test/Makefile | |
| parent | 569bc33a90282d039a9d1701bee7d9cd5919a24e (diff) | |
| download | rvcontroller-33e4744d1c73c9f5512abb4010e4cc81763ab3a2.tar rvcontroller-33e4744d1c73c9f5512abb4010e4cc81763ab3a2.tar.gz rvcontroller-33e4744d1c73c9f5512abb4010e4cc81763ab3a2.tar.bz2 rvcontroller-33e4744d1c73c9f5512abb4010e4cc81763ab3a2.tar.xz rvcontroller-33e4744d1c73c9f5512abb4010e4cc81763ab3a2.zip | |
Add machine timer interrupt
Diffstat (limited to 'assembly/timer-test/Makefile')
| -rw-r--r-- | assembly/timer-test/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/assembly/timer-test/Makefile b/assembly/timer-test/Makefile new file mode 100644 index 0000000..7989624 --- /dev/null +++ b/assembly/timer-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: timer-test.hex + +timer-test.o: timer-test.S + riscv32-none-elf-as -I../rvcontroller-libraries -march=${MARCH} -o timer-test.o timer-test.S + +timer-test.elf: timer-test.o + riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o timer-test.elf timer-test.o + +dump: timer-test.elf + riscv32-none-elf-objdump -d timer-test.elf + +timer-test.hex: timer-test.elf + riscv32-none-elf-objcopy -O ihex timer-test.elf timer-test.hex + +load: timer-test.hex + bash -c "wl-copy < timer-test.hex" + +clean: + rm -f timer-test.hex timer-test.elf timer-test.o + |
