2022-01-04 01:50:46 -05:00
|
|
|
elf = executable(
|
|
|
|
'kernel.elf',
|
|
|
|
arch_sources,
|
2022-01-09 17:15:15 -05:00
|
|
|
include_directories: includes,
|
2022-01-04 01:50:46 -05:00
|
|
|
link_args: [
|
|
|
|
'-Wl,-T,' + meson.current_source_dir() + '/platform.ld',
|
|
|
|
'-static'
|
|
|
|
],
|
|
|
|
link_depends: files('platform.ld'),
|
|
|
|
install: true,
|
|
|
|
install_dir: meson.build_root()
|
|
|
|
)
|
|
|
|
|
|
|
|
run_target('qemu',
|
|
|
|
command: [
|
|
|
|
find_program('qemu-system-riscv64'),
|
|
|
|
'-machine', 'virt',
|
|
|
|
'-cpu', 'rv64',
|
|
|
|
'-bios', 'opensbi-riscv64-generic-fw_dynamic.bin',
|
|
|
|
'-m', '256m',
|
|
|
|
'-serial', 'stdio',
|
|
|
|
'-s',
|
|
|
|
'-display', 'none',
|
|
|
|
# '-d', 'int',
|
|
|
|
'-kernel', elf
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|