more shit

master
xwashere 2023-12-29 09:13:28 -05:00
parent f8a1baeee0
commit 1174a098c3
Signed by: XWasHere
GPG Key ID: 042F8BFA1B0EF93B
1 changed files with 9 additions and 1 deletions

View File

@ -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
cp -f build/verilog/Vsystem build/cpu
build/kernel: ${KERNEL_SOURCES}
clang ${KERNEL_SOURCES} -o build/kernel