Restructure the processor definition

This commit is contained in:
Benjamin Kyd
2023-06-14 01:58:00 +01:00
parent 59dcf80fbe
commit 00920b2ecc
10 changed files with 140 additions and 122 deletions

View File

@@ -1,16 +1,15 @@
GCC_COMPILER=riscv32-unknown-elf-gcc
GCC_OBJCOPY=riscv32-unknown-elf-objcopy
all:
assemble
build
@echo "Done"
all: build
assemble:
$(GCC_COMPILER) -S test.c
build:
$(GCC_COMPILER) -Wl,-Ttext=0x0 -nostdlib -march=rv64i -mabi=lp64 -o test test.S
bin:
$(GCC_OBJCOPY) -O binary test test.bin
clean: