mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
09bf68e8ad
This component is contrasted with the fs_rom server that serves independent dataspaces to each client. Using a cache was not possible until the region map session supported the creation of read-only attachments. Test at run/read_only_rom. Ref #1633 Fix #2760
59 lines
1.2 KiB
Plaintext
59 lines
1.2 KiB
Plaintext
build {
|
|
core init
|
|
server/cached_fs_rom
|
|
server/vfs
|
|
test/immutable_rom
|
|
}
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="PD"/>
|
|
<service name="RM"/>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
</default-route>
|
|
<default caps="100"/>
|
|
<start name="vfs">
|
|
<resource name="RAM" quantum="2M"/>
|
|
<provides><service name="File_system"/></provides>
|
|
<config>
|
|
<vfs>
|
|
<inline name="test">DONT TOUCH</inline>
|
|
</vfs>
|
|
<default-policy root="/"/>
|
|
</config>
|
|
</start>
|
|
<start name="cached_fs_rom">
|
|
<resource name="RAM" quantum="4M"/>
|
|
<provides> <service name="ROM"/> </provides>
|
|
</start>
|
|
<start name="test-immutable_rom">
|
|
<resource name="RAM" quantum="2M"/>
|
|
<route>
|
|
<service name="ROM" label="test">
|
|
<child name="cached_fs_rom"/>
|
|
</service>
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
</route>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image {
|
|
core ld.lib.so init
|
|
cached_fs_rom
|
|
test-immutable_rom
|
|
vfs vfs.lib.so
|
|
}
|
|
|
|
append qemu_args "-nographic "
|
|
|
|
run_genode_until {.*pd='init -> test-immutable_rom'.*} 30
|