2018-07-05 14:50:14 +00:00
|
|
|
build { app/sequence server/vfs lib/vfs/import test/libc }
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
import_from_depot \
|
2019-02-19 13:24:52 +00:00
|
|
|
[depot_user]/src/[base_src] \
|
|
|
|
[depot_user]/src/coreutils \
|
|
|
|
[depot_user]/src/init \
|
2020-03-06 09:49:35 +00:00
|
|
|
[depot_user]/src/fs_rom \
|
2019-02-19 13:24:52 +00:00
|
|
|
[depot_user]/src/libc \
|
|
|
|
[depot_user]/src/posix \
|
2018-07-05 14:50:14 +00:00
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config verbose="yes">
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
</parent-provides>
|
2020-03-06 09:49:35 +00:00
|
|
|
|
2018-07-05 14:50:14 +00:00
|
|
|
<default-route>
|
2020-03-06 09:49:35 +00:00
|
|
|
<any-service> <parent/> </any-service>
|
2018-07-05 14:50:14 +00:00
|
|
|
</default-route>
|
|
|
|
<default caps="100"/>
|
2020-03-06 09:49:35 +00:00
|
|
|
|
2018-07-05 14:50:14 +00:00
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="vfs">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="File_system"/></provides>
|
|
|
|
<config>
|
2020-03-06 09:49:35 +00:00
|
|
|
<vfs>
|
|
|
|
<ram/>
|
|
|
|
<tar name="coreutils.tar" />
|
|
|
|
</vfs>
|
2018-07-05 14:50:14 +00:00
|
|
|
<default-policy root="/" writeable="yes"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2020-03-06 09:49:35 +00:00
|
|
|
<start name="vfs_rom">
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
<binary name="fs_rom"/>
|
|
|
|
<provides> <service name="ROM"/> </provides>
|
|
|
|
<config/>
|
|
|
|
<route>
|
|
|
|
<service name="File_system"> <child name="vfs"/> </service>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2018-07-05 14:50:14 +00:00
|
|
|
<start name="test" caps="500">
|
|
|
|
<binary name="sequence"/>
|
|
|
|
<resource name="RAM" quantum="1G"/>
|
|
|
|
<config>
|
2020-03-06 09:49:35 +00:00
|
|
|
<start name="/bin/true" caps="500">
|
|
|
|
<config>
|
|
|
|
<libc stdin="/dev/null" stdout="/dev/log" stderr="/dev/log"/>
|
|
|
|
<vfs>
|
2018-07-05 14:50:14 +00:00
|
|
|
<dir name="fs"> <fs/> </dir>
|
|
|
|
<dir name="dev"> <log/> <null/> </dir>
|
|
|
|
<ram/>
|
|
|
|
<import overwrite="yes">
|
|
|
|
<dir name="fs">
|
|
|
|
<symlink name="link" target="test"/>
|
|
|
|
<inline name="test">Hello world!</inline>
|
|
|
|
</dir>
|
|
|
|
</import>
|
2020-03-06 09:49:35 +00:00
|
|
|
</vfs>
|
2018-07-05 14:50:14 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
2020-03-06 09:49:35 +00:00
|
|
|
<start name="/bin/cat" caps="500">
|
|
|
|
<config>
|
|
|
|
<libc stdin="/dev/null" stdout="/dev/log" stderr="/dev/log"
|
|
|
|
rtc="/dev/null"/>
|
|
|
|
<vfs>
|
2018-07-05 14:50:14 +00:00
|
|
|
<dir name="fs"> <fs writeable="no"/> </dir>
|
|
|
|
<dir name="dev"> <log/> <null/> </dir>
|
2020-03-06 09:49:35 +00:00
|
|
|
</vfs>
|
|
|
|
<arg value="cat"/>
|
|
|
|
<arg value="/fs/link"/>
|
2018-07-05 14:50:14 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
</config>
|
2020-03-06 09:49:35 +00:00
|
|
|
<route>
|
|
|
|
<service name="File_system"> <child name="vfs"/> </service>
|
|
|
|
<service name="ROM" label_suffix=".lib.so"> <parent/> </service>
|
|
|
|
<service name="ROM" label_prefix="/bin"> <child name="vfs_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
2018-07-05 14:50:14 +00:00
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
build_boot_image { vfs_import.lib.so libc.lib.so vfs vfs.lib.so sequence }
|
|
|
|
|
|
|
|
append qemu_args " -nographic -serial mon:stdio "
|
|
|
|
|
|
|
|
run_genode_until {Hello world!} 30
|