blob: 8ad2e4d9791b4f84ef65cc12a4fe968061c57959 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
cflags{
'-D _GNU_SOURCE',
'-D CONFIG_RISCV_MAX_XLEN=64',
'-D CONFIG_SLIRP',
[[-D 'CONFIG_VERSION="2018-09-23"']],
}
build('cc', '$outdir/riscv_cpu32.o', '$srcdir/riscv_cpu.c', {cflags='$cflags -DMAX_XLEN=32'})
build('cc', '$outdir/riscv_cpu64.o', '$srcdir/riscv_cpu.c', {cflags='$cflags -DMAX_XLEN=64'})
exe('temu', [[
virtio.c pci.c fs.c cutils.c iomem.c simplefb.c
json.c machine.c temu.c
slirp/(
bootp.c ip_icmp.c mbuf.c slirp.c tcp_output.c cksum.c ip_input.c
misc.c socket.c tcp_subr.c udp.c if.c ip_output.c sbuf.c
tcp_input.c tcp_timer.c
)
fs_disk.c
riscv_machine.c softfp.c riscv_cpu32.o riscv_cpu64.o
x86_cpu.c x86_machine.c ide.c ps2.c vmmouse.c pckbd.c vga.c
]])
file('bin/temu', '755', '$outdir/temu')
fetch 'curl'
|