2017-05-20 00:36:13 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
set build_components {
|
2017-06-28 12:20:48 +00:00
|
|
|
core init drivers/timer
|
2018-07-05 15:55:24 +00:00
|
|
|
lib/vfs/import
|
|
|
|
server/fs_report
|
|
|
|
server/fs_rom
|
|
|
|
server/vfs
|
|
|
|
test/fs_report
|
2017-05-20 00:36:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build $build_components
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
append config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
2017-06-28 12:20:48 +00:00
|
|
|
<service name="IRQ"/>
|
2017-05-20 00:36:13 +00:00
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
2017-06-28 12:20:48 +00:00
|
|
|
<service name="CPU"/>
|
2017-05-20 00:36:13 +00:00
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="ROM"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2017-06-28 12:20:48 +00:00
|
|
|
<default caps="100"/>
|
2017-05-20 00:36:13 +00:00
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
2017-06-28 12:20:48 +00:00
|
|
|
<provides> <service name="Timer"/> </provides>
|
2017-05-20 00:36:13 +00:00
|
|
|
</start>
|
2018-07-05 15:55:24 +00:00
|
|
|
<start name="vfs">
|
2017-05-20 00:36:13 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides> <service name="File_system"/> </provides>
|
|
|
|
<config>
|
2018-07-05 15:55:24 +00:00
|
|
|
<vfs>
|
|
|
|
<ram/>
|
|
|
|
<import>
|
|
|
|
<dir name="test-fs_report">
|
|
|
|
<inline name="devices">
|
|
|
|
<devices version="initial"/>
|
|
|
|
</inline>
|
|
|
|
</dir>
|
|
|
|
</import>
|
|
|
|
</vfs>
|
2017-06-28 12:20:48 +00:00
|
|
|
<policy label_prefix="fs_report -> " root="/" writeable="yes"/>
|
|
|
|
<policy label_prefix="fs_rom -> " root="/test-fs_report"/>
|
2018-05-27 08:09:00 +00:00
|
|
|
<policy label_prefix="test-fs_report -> " root="/test-fs_report" writeable="yes"/>
|
2017-05-20 00:36:13 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
2017-06-28 12:20:48 +00:00
|
|
|
<!--
|
|
|
|
All reports sent by 'test-fs_report' are prefixed with the label of the
|
|
|
|
component. Hence, they are written to the 'test-fs_report/' subdirectory.
|
|
|
|
-->
|
2017-05-20 00:36:13 +00:00
|
|
|
<start name="fs_report">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides> <service name="Report"/> </provides>
|
2017-06-28 12:20:48 +00:00
|
|
|
<config> <vfs> <fs/> </vfs> </config>
|
2017-05-20 00:36:13 +00:00
|
|
|
</start>
|
2017-06-28 12:20:48 +00:00
|
|
|
<start name="fs_rom">
|
2017-05-20 00:36:13 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>
|
2017-06-28 12:20:48 +00:00
|
|
|
<provides> <service name="ROM"/> </provides>
|
|
|
|
<config/>
|
2017-05-20 00:36:13 +00:00
|
|
|
</start>
|
2017-06-28 12:20:48 +00:00
|
|
|
<start name="test-fs_report">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
2018-05-27 08:09:00 +00:00
|
|
|
<config> <vfs> <fs/> </vfs> </config>
|
2017-06-28 12:20:48 +00:00
|
|
|
<route>
|
|
|
|
<service name="ROM" label="devices"> <child name="fs_rom"/> </service>
|
|
|
|
<service name="ROM" label="focus"> <child name="fs_rom"/> </service>
|
|
|
|
<service name="Report" label="devices"> <child name="fs_report"/> </service>
|
|
|
|
<service name="Report" label="focus"> <child name="fs_report"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
2017-05-20 00:36:13 +00:00
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
set boot_modules {
|
2017-06-28 12:20:48 +00:00
|
|
|
core ld.lib.so init timer
|
2018-07-05 15:55:24 +00:00
|
|
|
fs_report fs_rom test-fs_report
|
|
|
|
vfs vfs.lib.so vfs_import.lib.so
|
2017-05-20 00:36:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
append qemu_args " -nographic"
|
|
|
|
|
2017-06-28 12:20:48 +00:00
|
|
|
run_genode_until {child "test-fs_report" exited with exit value 0.*\n} 30
|