more shit
parent
f8a1baeee0
commit
1174a098c3
10
makefile
10
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
|
||||
cp -f build/verilog/Vsystem build/cpu
|
||||
|
||||
build/kernel: ${KERNEL_SOURCES}
|
||||
clang ${KERNEL_SOURCES} -o build/kernel
|
Loading…
Reference in New Issue