mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 21:57:55 +00:00
b6d20b4742
- libc and nic driver are currently not available on RISC-V issue #4021
51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
if {[get_cmd_switch --autopilot] && [have_board riscv_qemu]} {
|
|
puts "Autopilot mode is not supported on this platform."
|
|
exit 0
|
|
}
|
|
|
|
#
|
|
# Lua C++ library test
|
|
#
|
|
|
|
build "core init timer test/moon"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="PD"/>
|
|
<service name="ROM"/>
|
|
<service name="LOG"/>
|
|
<service name="IO_PORT"/>
|
|
<service name="IO_MEM"/>
|
|
<service name="IRQ"/>
|
|
<service name="CPU"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
</default-route>
|
|
<default caps="100"/>
|
|
<start name="timer">
|
|
<resource name="RAM" quantum="1M"/>
|
|
<provides> <service name="Timer"/> </provides>
|
|
</start>
|
|
<start name="test-moon">
|
|
<resource name="RAM" quantum="1G"/>
|
|
<config>
|
|
<vfs> <dir name="dev"> <log/> </dir> </vfs>
|
|
<libc stdout="/dev/log"/>
|
|
</config>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image {
|
|
core init timer test-moon
|
|
ld.lib.so libc.lib.so vfs.lib.so libm.lib.so
|
|
}
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
run_genode_until {.*test-moon.*Finished\..*} 40
|