2011-12-22 15:19:25 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
2016-05-20 12:49:45 +00:00
|
|
|
build { core init hello }
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="LOG"/>
|
2017-03-24 14:22:32 +00:00
|
|
|
<service name="PD"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="ROM"/>
|
2011-12-22 15:19:25 +00:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="50"/>
|
2011-12-22 15:19:25 +00:00
|
|
|
<start name="hello_server">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
2016-05-20 12:49:45 +00:00
|
|
|
<provides> <service name="Hello"/> </provides>
|
2014-03-18 16:00:46 +00:00
|
|
|
</start>
|
2011-12-22 15:19:25 +00:00
|
|
|
<start name="hello_client">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot image
|
|
|
|
#
|
|
|
|
|
2016-12-01 18:00:11 +00:00
|
|
|
build_boot_image { core ld.lib.so init hello_client hello_server }
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
|
2016-11-06 13:27:26 +00:00
|
|
|
run_genode_until forever
|
2016-05-20 12:49:45 +00:00
|
|
|
run_genode_until "hello test completed.*\n" 10
|