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