if {[have_spec linux]} {
puts "\n Run script is not supported on this platform. \n";
exit 0
}
if {[get_cmd_switch --autopilot] && ![have_include "power_on/qemu"]} {
puts "\n Run script is not supported on this platform. \n";
exit 0
}
proc log_service { } {
if { [get_cmd_switch --autopilot] } { return log }
return ram
}
if {[have_spec nova]} {
proc kernel_output { } { return "novga logmem" }
}
build {
core init timer lib/ld lib/libc lib/vfs
server/file_terminal server/terminal_log app/log_core
}
create_boot_directory
proc kernel_start_node { } {
if {![have_spec nova]} {
return { } }
return {
}
}
install_config {
} [kernel_start_node] {
}
build_boot_image [build_artifacts]
append qemu_args " -nographic "
if { [get_cmd_switch --autopilot] } {
run_genode_until {.*\[log_core -> log] \[.*\n} 20
} else {
run_genode_until forever
}