From 1174a098c35247bcc03c75754419cab201f5f705 Mon Sep 17 00:00:00 2001 From: xwashere Date: Fri, 29 Dec 2023 09:13:28 -0500 Subject: [PATCH] more shit --- makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index e369add..a33b02b 100644 --- a/makefile +++ b/makefile @@ -1,12 +1,20 @@ VERILATOR ?= verilator +CC ?= clang + VERILOG_SOURCES = \ board/system.sv \ board/parts/hart.sv \ board/parts/pmmu.sv \ board/parts/rom.sv +KERNEL_SOURCES = \ + os/kernel/boot.s + build/cpu: ${VERILOG_SOURCES} mkdir -p build/verilog ${VERILATOR} --build --binary board/system.sv -Mdir build/verilog +incdir+board - cp -f build/verilog/Vsystem build/cpu \ No newline at end of file + cp -f build/verilog/Vsystem build/cpu + +build/kernel: ${KERNEL_SOURCES} + clang ${KERNEL_SOURCES} -o build/kernel \ No newline at end of file