more shit
parent
f8a1baeee0
commit
1174a098c3
8
makefile
8
makefile
|
@ -1,12 +1,20 @@
|
||||||
VERILATOR ?= verilator
|
VERILATOR ?= verilator
|
||||||
|
|
||||||
|
CC ?= clang
|
||||||
|
|
||||||
VERILOG_SOURCES = \
|
VERILOG_SOURCES = \
|
||||||
board/system.sv \
|
board/system.sv \
|
||||||
board/parts/hart.sv \
|
board/parts/hart.sv \
|
||||||
board/parts/pmmu.sv \
|
board/parts/pmmu.sv \
|
||||||
board/parts/rom.sv
|
board/parts/rom.sv
|
||||||
|
|
||||||
|
KERNEL_SOURCES = \
|
||||||
|
os/kernel/boot.s
|
||||||
|
|
||||||
build/cpu: ${VERILOG_SOURCES}
|
build/cpu: ${VERILOG_SOURCES}
|
||||||
mkdir -p build/verilog
|
mkdir -p build/verilog
|
||||||
${VERILATOR} --build --binary board/system.sv -Mdir build/verilog +incdir+board
|
${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