QTechOS/kernel/arch/riscv/platform/qemu/meson.build
Quantum c4e91606de
Fixed qemu build
Forgot to add the include directories
2022-01-09 17:15:15 -05:00

28 lines
631 B
Meson

elf = executable(
'kernel.elf',
arch_sources,
include_directories: includes,
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
]
)