proc ui_is { arg } { global ui return [string equal $arg $ui ] } proc jent_avail { } { if {[have_board pbxa9]} { return 0 } if {[have_board zynq_qemu]} { return 0 } return 1 } proc jent_avail_attr { } { if {[jent_avail]} { return "yes" } return "no" } build { app/file_vault } create_boot_directory append archives " [depot_user]/src/[base_src] [depot_user]/src/init [depot_user]/src/libc [depot_user]/src/zlib [depot_user]/src/fs_query [depot_user]/src/tresor [depot_user]/src/vfs_block [depot_user]/src/vfs [depot_user]/src/openssl [depot_user]/src/fs_tool [depot_user]/src/fs_utils [depot_user]/src/posix [depot_user]/src/rump [depot_user]/src/sandbox " append_if [jent_avail] archives " [depot_user]/src/vfs_jitterentropy " lappend_if [ui_is menu_view] archives [depot_user]/src/nitpicker lappend_if [ui_is menu_view] archives [depot_user]/src/menu_view lappend_if [ui_is menu_view] archives [depot_user]/src/libpng lappend_if [ui_is menu_view] archives [depot_user]/pkg/fonts_fs lappend_if [ui_is menu_view] archives [depot_user]/pkg/[drivers_interactive_pkg] lappend_if [ui_is config_and_report] archives [depot_user]/src/report_rom lappend_if [ui_is config_and_report] archives [depot_user]/src/dynamic_rom lappend_if [have_board linux] archives [depot_user]/src/lx_fs import_from_depot $archives append config { } append_if [ui_is menu_view] config { } append_if [ui_is config_and_report] config { } if {[have_board linux]} { append config { } } else { append config { } } append config { } append_if [ui_is menu_view] config { } append_if [ui_is config_and_report] config { } append config { } install_config $config if {[have_board linux]} { if {[ui_is config_and_report]} { exec rm -rf bin/file_vault_dir } exec mkdir -p bin/file_vault_dir/data exec mkdir -p bin/file_vault_dir/trust_anchor } append boot_modules { file_vault file_vault-sync_to_tresor_vfs_init file_vault-truncate_file } lappend_if [have_board linux] boot_modules file_vault_dir if {[ui_is menu_view]} { set fd [open [run_dir]/genode/focus w] puts $fd " \"/>" close $fd append qemu_args " -display gtk " build_boot_image $boot_modules run_genode_until forever } if {[ui_is config_and_report]} { build_boot_image $boot_modules append exp_output {.*.*\n} append exp_output {.*.*\n} append exp_output {.*.*\n} append exp_output {.*.*\n} append exp_output {.*.*\n} append qemu_args " -display none " run_genode_until $exp_output 70 }