QTechOS/kernel/arch/riscv/platform/qemu/meson.build
Quantum b35d58df1f
Build System: More better
Split code into generic, arch, and platform

Made QEMU its own platform

Added shitty uart upload script for lichee board until I can get fel to
actually upload uboot payloads without hanging

TODO: Move platform selection out of build script

TODO: Move arch specific stuff from kernel to arch

TODO: Common linker script for arch instead of having a copy in each
platform
2022-01-04 01:50:46 -05:00

27 lines
596 B
Meson

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