if {![have_spec x86] || [have_spec linux]} { puts "Platform is unsupported." exit 0 } proc depot_user {} { return [get_cmd_arg --depot-user genodelabs] } create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/pkg/sculpt proc config_system_content {} { return {\ } } install_config { } [config_system_content] { ### start ### } foreach file [glob "[genode_dir]/repos/gems/run/sculpt/*.config"] { file copy -force $file [run_dir]/genode/ } # # Override files normally obtained from depot archive with the most current # version found in the Genode source tree. This way, we don't need to # rebuild the corresponding depot archives each time we tweak one of the # files. This is just a hack to accelerate the work flow. # file copy -force [genode_dir]/repos/gems/recipes/pkg/sculpt/README [run_dir]/genode/ file copy -force [genode_dir]/repos/gems/run/sculpt/vimrc [run_dir]/genode/ file copy -force [genode_dir]/repos/gems/run/sculpt/machine.vbox [run_dir]/genode/ file copy -force [genode_dir]/repos/gems/recipes/raw/drivers_managed-pc/drivers.config \ [run_dir]/genode/drivers.config foreach file { en_us.chargen de.chargen special.chargen } { file copy -force [genode_dir]/repos/os/src/server/input_filter/$file \ [run_dir]/genode/$file } file copy -force [genode_dir]/repos/gems/recipes/raw/drivers_managed-pc/input_filter.config \ [run_dir]/genode/input_filter.config file copy -force [genode_dir]/repos/gems/recipes/raw/depot_download/depot_download.config \ [run_dir]/genode/depot_download.config file copy -force [genode_dir]/VERSION [run_dir]/genode/ file copy -force [genode_dir]/repos/gems/src/app/backdrop/genode_logo.png [run_dir]/genode/ exec gzip -dc [genode_dir]/repos/gems/run/sculpt/machine.vdi.gz > [run_dir]/genode/machine.vdi # # Define 'VERSION' ROM module # proc sculpt_version { } { return "[string trim [exec cat [genode_dir]/VERSION]]" } # write file with newline (for producing nice output when using 'cat /VERSION') set fd [open [run_dir]/genode/VERSION w] puts $fd "[sculpt_version]" close $fd # # Assemble 'depot_users.tar' with the keys and download locations of the # depot user found at genode/depot/. # set depot_users_files [exec sh -c "cd [genode_dir]; \ find depot -maxdepth 3 -name pubkey \ -or -name download"] exec sh -c "tar cf [run_dir]/genode/depot_users.tar -C [genode_dir] \ [join $depot_users_files]" # # Depot packages to be included in the default installation # proc current_pkg { pkg } { return $pkg/[_current_depot_archive_version pkg $pkg] } set pkgs_to_install { } set fd [open [run_dir]/genode/installation w] puts $fd "" foreach pkg $pkgs_to_install { puts $fd " " } puts $fd "" close $fd # # Manual configuration of deploy runtime # # This configuration is not provided as a file at run/sculpt/ because some # parts need to be filled in at run-script execution time, in particular the # current versions of the packages to deploy. # append manual_deploy_config { } set fd [open [run_dir]/genode/manual_deploy.config w] puts $fd $manual_deploy_config close $fd # # Create boot image # append boot_modules { } build_boot_image $boot_modules