create_boot_directory if {[have_spec linux] || [have_spec imx7d_sabre] || [expr [have_spec imx53] && [have_spec trustzone]]} { puts "Run script does not support this platform." exit 0 } import_from_depot [depot_user]/src/[base_src] \ [depot_user]/pkg/[drivers_nic_pkg] \ [depot_user]/src/report_rom \ [depot_user]/src/fs_rom \ [depot_user]/src/vfs \ [depot_user]/src/vfs_lxip \ [depot_user]/src/fetchurl \ [depot_user]/src/libc \ [depot_user]/src/libssh \ [depot_user]/src/libssl \ [depot_user]/src/libcrypto \ [depot_user]/src/zlib \ [depot_user]/src/curl \ [depot_user]/src/init \ [depot_user]/src/chroot \ [depot_user]/src/extract \ [depot_user]/src/libarchive \ [depot_user]/src/liblzma \ [depot_user]/src/verify set config { } proc depot_user_download { user } { return [exec cat [genode_dir]/depot/$user/download] } proc depot_user_pubkey { user } { return [exec cat [genode_dir]/depot/$user/pubkey] } append config { } [depot_user_download nfeske] { } [depot_user_pubkey nfeske] { } [depot_user_download genodelabs] { } [depot_user_pubkey genodelabs] { } set fd [open [run_dir]/genode/installation w] puts $fd { } close $fd install_config $config file copy -force [genode_dir]/repos/gems/recipes/raw/depot_download/depot_download.config \ [run_dir]/genode/depot_download.config build { app/depot_download_manager app/depot_query } append boot_modules { depot_download_manager depot_query } build_boot_image $boot_modules append qemu_args " -nographic " proc qemu_nic_model {} { if [have_spec x86] { return e1000 } if [have_spec lan9118] { return lan9118 } if [have_spec zynq] { return cadence_gem } return nic_model_missing } append qemu_args " -netdev user,id=net0 " append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 " # watch the state reports generated by the depot-download manager set expected_pattern {} append expected_pattern {.*path="genodelabs/pkg/wm/2018-02-26" state="done".*} append expected_pattern {.*path="nfeske/index/19.02" state="done".*} append expected_pattern {.*path="nfeske/index/19.03" state="failed".*} run_genode_until $expected_pattern 150