diff options
| author | cheapie <cheapiephp@gmail.com> | 2026-06-06 11:25:21 -0500 |
|---|---|---|
| committer | cheapie <cheapiephp@gmail.com> | 2026-06-06 11:25:21 -0500 |
| commit | 2b1c27b2b6ae78a043ecae25603939c76d63956e (patch) | |
| tree | 8550d7369e5f7b4efdbd995cbfeb44a2f788c192 /assembly/beacon/Makefile | |
| parent | ad3b71a2a7c895ab4209619492d1e0b2a39adb82 (diff) | |
| download | rvcontroller-2b1c27b2b6ae78a043ecae25603939c76d63956e.tar rvcontroller-2b1c27b2b6ae78a043ecae25603939c76d63956e.tar.gz rvcontroller-2b1c27b2b6ae78a043ecae25603939c76d63956e.tar.bz2 rvcontroller-2b1c27b2b6ae78a043ecae25603939c76d63956e.tar.xz rvcontroller-2b1c27b2b6ae78a043ecae25603939c76d63956e.zip | |
Add beacon and digital sign files
Diffstat (limited to 'assembly/beacon/Makefile')
| -rw-r--r-- | assembly/beacon/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/assembly/beacon/Makefile b/assembly/beacon/Makefile new file mode 100644 index 0000000..84d76c4 --- /dev/null +++ b/assembly/beacon/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: beacon.hex + +beacon.o: beacon.S + riscv32-none-elf-as -I../rvcontroller-libraries -march=${MARCH} -o beacon.o beacon.S + +beacon.elf: beacon.o + riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o beacon.elf beacon.o + +dump: beacon.elf + riscv32-none-elf-objdump -d beacon.elf + +beacon.hex: beacon.elf + riscv32-none-elf-objcopy -O ihex beacon.elf beacon.hex + +load: beacon.hex + bash -c "wl-copy < beacon.hex" + +clean: + rm -f beacon.bin beacon.elf beacon.o + |
