2017-12-20 17:27:32 +00:00
|
|
|
create_boot_directory
|
|
|
|
|
2022-08-09 11:32:38 +00:00
|
|
|
if {[get_cmd_switch --autopilot] && [have_board virt_qemu_riscv]} {
|
2021-02-18 08:04:39 +00:00
|
|
|
puts "Autopilot mode is not supported on this platform."
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
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="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">
|
2019-09-27 15:25:40 +00:00
|
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/null"
|
|
|
|
update_mtime="no"/>
|
2017-12-20 17:27:32 +00:00
|
|
|
<vfs>
|
2019-02-21 11:11:53 +00:00
|
|
|
<dir name="archived">
|
|
|
|
<rom name="test.tar.xz"/>
|
|
|
|
<rom name="LICENSE.xz"/>
|
|
|
|
</dir>
|
2017-12-20 17:27:32 +00:00
|
|
|
<dir name="extracted"> <ram/> </dir>
|
|
|
|
<dir name="dev"> <log/> <null/> </dir>
|
|
|
|
</vfs>
|
|
|
|
<extract archive="/archived/test.tar.xz" to="/extracted"/>
|
2019-02-21 11:11:53 +00:00
|
|
|
<extract archive="/archived/LICENSE.xz" to="/extracted" name="LICENSE"/>
|
2017-12-20 17:27:32 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
exec tar cJf [run_dir]/genode/test.tar.xz -C [genode_dir] tool/depot
|
2019-02-21 11:11:53 +00:00
|
|
|
exec xz < [genode_dir]/LICENSE > [run_dir]/genode/LICENSE.xz
|
2017-12-20 17:27:32 +00:00
|
|
|
|
2023-09-12 14:21:03 +00:00
|
|
|
build { app/extract lib/libc lib/vfs lib/libarchive lib/liblzma lib/zlib }
|
2017-12-20 17:27:32 +00:00
|
|
|
|
2023-09-12 14:21:03 +00:00
|
|
|
build_boot_image [build_artifacts]
|
2017-12-20 17:27:32 +00:00
|
|
|
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
|
|
|
|
run_genode_until {child "extract" exited with exit value 0} 30
|