2017-12-20 17:27:32 +00:00
|
|
|
create_boot_directory
|
|
|
|
|
2019-02-19 13:24:52 +00:00
|
|
|
import_from_depot [depot_user]/src/[base_src] \
|
|
|
|
[depot_user]/src/init
|
2017-12-20 17:27:32 +00:00
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RAM"/>
|
|
|
|
<service name="ROM"/>
|
|
|
|
</parent-provides>
|
|
|
|
|
|
|
|
<default-route> <any-service> <parent/> </any-service> </default-route>
|
|
|
|
|
|
|
|
<start name="extract" caps="200">
|
|
|
|
<resource name="RAM" quantum="12M"/>
|
|
|
|
<config verbose="yes">
|
|
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/null"/>
|
|
|
|
<vfs>
|
|
|
|
<dir name="archived"> <rom name="test.tar.xz"/> </dir>
|
|
|
|
<dir name="extracted"> <ram/> </dir>
|
|
|
|
<dir name="dev"> <log/> <null/> </dir>
|
|
|
|
</vfs>
|
|
|
|
<extract archive="/archived/test.tar.xz" to="/extracted"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
exec tar cJf [run_dir]/genode/test.tar.xz -C [genode_dir] tool/depot
|
|
|
|
|
|
|
|
build { app/extract }
|
|
|
|
|
|
|
|
build_boot_image {
|
|
|
|
extract
|
2018-04-23 08:49:21 +00:00
|
|
|
libc.lib.so vfs.lib.so
|
2017-12-20 17:27:32 +00:00
|
|
|
libarchive.lib.so liblzma.lib.so zlib.lib.so
|
|
|
|
}
|
|
|
|
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
|
|
|
|
run_genode_until {child "extract" exited with exit value 0} 30
|