2013-08-10 01:44:55 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
|
|
|
set build_components {
|
|
|
|
core init
|
|
|
|
drivers/timer
|
|
|
|
test/trace
|
2017-01-30 10:07:48 +00:00
|
|
|
lib/trace/policy/null
|
2017-03-06 09:36:05 +00:00
|
|
|
app/top
|
2013-08-10 01:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build $build_components
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
|
|
|
append config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="RAM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="TRACE"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
|
|
|
<start name="test-trace">
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
<config>
|
2017-01-30 10:07:48 +00:00
|
|
|
<trace_policy label="init -> test-trace" module="null" />
|
2013-08-10 01:44:55 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
2017-03-06 09:36:05 +00:00
|
|
|
<start name="top">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<config period_ms="2000"/>
|
|
|
|
</start>
|
2013-08-10 01:44:55 +00:00
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
# generic modules
|
|
|
|
set boot_modules {
|
2016-12-01 18:00:11 +00:00
|
|
|
core ld.lib.so init
|
2013-08-10 01:44:55 +00:00
|
|
|
timer
|
2017-03-06 09:36:05 +00:00
|
|
|
top
|
2013-08-10 01:44:55 +00:00
|
|
|
test-trace
|
2017-01-30 10:07:48 +00:00
|
|
|
null
|
2013-08-10 01:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
2017-03-06 09:36:05 +00:00
|
|
|
append qemu_args " -nographic -serial mon:stdio -m 256 -smp 2 "
|
2013-08-10 01:44:55 +00:00
|
|
|
|
2017-01-30 10:07:48 +00:00
|
|
|
run_genode_until {.*child "test-trace" exited with exit value 0.*} 30
|