blob: e3ff53348f386840252f2a7765cd2729ea82fef0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
all: squares.hex
squares.o: squares.c
clang -target riscv32-none-elf -I../rvcontroller-libraries -march=rv32imacbzicboz_zicfilp1p0_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zilsd_zimop_zabha_zacas_zalasr_zawrs_zcb_zclsd_zcmop_zcmp_zcmt_zbc_zk_zkr_zks -menable-experimental-extensions -ffreestanding -O3 -c -o squares.o squares.c
squares.elf: ../rvcontroller-libraries/rvcontroller-init.o ../rvcontroller-libraries/rvcontroller-ecalls.o squares.o
clang -target riscv32-none-elf -T rvcontroller.ld -nostdlib -nostartfiles -Xlinker --no-warn-rwx-segments -o squares.elf ../rvcontroller-libraries/rvcontroller-init.o squares.o ../rvcontroller-libraries/rvcontroller-ecalls.o
dump: squares.elf
riscv32-none-elf-objdump -d squares.elf
squares.hex: squares.elf
riscv32-none-elf-objcopy -O ihex squares.elf squares.hex
load: squares.hex
bash -c "wl-copy < squares.hex"
clean:
rm -f squares.hex squares.elf squares.o init.o
|