diff options
| author | cheapie <cheapiephp@gmail.com> | 2026-05-30 08:58:29 -0500 |
|---|---|---|
| committer | cheapie <cheapiephp@gmail.com> | 2026-05-30 08:58:29 -0500 |
| commit | d609dcb35dafebeafced9c40d92ddd5da630aa54 (patch) | |
| tree | be5b1083f2f12173dbe936306e46a11cff4d62ea /assembly/fib/Makefile | |
| parent | 28be6fac111899c930c8072cd42bcbd7be6f5d40 (diff) | |
| download | rvcontroller-d609dcb35dafebeafced9c40d92ddd5da630aa54.tar rvcontroller-d609dcb35dafebeafced9c40d92ddd5da630aa54.tar.gz rvcontroller-d609dcb35dafebeafced9c40d92ddd5da630aa54.tar.bz2 rvcontroller-d609dcb35dafebeafced9c40d92ddd5da630aa54.tar.xz rvcontroller-d609dcb35dafebeafced9c40d92ddd5da630aa54.zip | |
Organize files better and include binaries for assembly samples
Diffstat (limited to 'assembly/fib/Makefile')
| -rw-r--r-- | assembly/fib/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/assembly/fib/Makefile b/assembly/fib/Makefile new file mode 100644 index 0000000..da333af --- /dev/null +++ b/assembly/fib/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: fib.hex + +fib.o: fib.S + riscv32-none-elf-as -I../rvcontroller-libraries -march=${MARCH} -o fib.o fib.S + +fib.elf: fib.o + riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o fib.elf fib.o + +dump: fib.elf + riscv32-none-elf-objdump -d fib.elf + +fib.hex: fib.elf + riscv32-none-elf-objcopy -O ihex fib.elf fib.hex + +load: fib.hex + bash -c "wl-copy < fib.hex" + +clean: + rm -f fib.bin fib.elf fib.o + |
