init upload

This commit is contained in:
Luxferre
2026-06-18 14:01:36 +03:00
commit 1783473a6c
6 changed files with 1190 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
CC = riscv64-linux-gnu-gcc
OBJCOPY = riscv64-linux-gnu-objcopy
EMULATOR = ./amach
ASFLAGS = -march=rv32ima -mabi=ilp32 -nostdlib -static -fno-pic -fno-pie -mno-relax
LDFLAGS = -Wl,-Ttext=0x100b0 -Wl,--build-id=none
all: rv32ima_tests.bin
rv32ima_tests.elf: rv32ima_tests.s
$(CC) $(ASFLAGS) $(LDFLAGS) rv32ima_tests.s -o rv32ima_tests.elf
rv32ima_tests.bin: rv32ima_tests.elf
$(OBJCOPY) -O binary rv32ima_tests.elf rv32ima_tests.bin
run: rv32ima_tests.bin
$(EMULATOR) rv32ima_tests.bin
clean:
rm -f rv32ima_tests.elf rv32ima_tests.bin
.PHONY: all run clean