# Build # set build_components { core init drivers/timer drivers/audio drivers/usb drivers/framebuffer drivers/input app/uhexen2 } source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components set usb_only 0 lappend_if [expr !$usb_only] build_components server/input_merger build $build_components create_boot_directory # # Generate config # append config { } append_if [have_spec sdl] config { } append_platform_drv_config append_if [have_spec vesa] config { } append_if [have_spec pl11x] config { } append_if [expr [have_spec ps2] && !$usb_only] config { } append config { } append_if [expr !$usb_only] config { } append config { } append_if [expr !$usb_only] config { } append config { } install_config $config if {![file exists bin/hexen2demo_data.tar]} { set hexen2demo_dir "hexen2demo_nov1997" set hexen2demo_tgz "hexen2demo_nov1997-linux-i586.tgz" set hexen2demo_url "http://downloads.sourceforge.net/project/uhexen2/Hexen2Demo-Nov.1997/$hexen2demo_tgz" if {![file exists bin/hexen2demo_nov1997-linux-i586.tgz]} { puts "" puts "Please download Hexen 2 demo data from '$hexen2demo_url'." puts "Place the archive in './bin' and run this script again." puts "" exit 1 } exec tar xzf bin/$hexen2demo_tgz -C bin $hexen2demo_dir/data1 exec echo showfps 1 >> bin/$hexen2demo_dir/data1/autoexec.cfg exec tar cf bin/hexen2demo_data.tar -C bin/$hexen2demo_dir data1 exec rm -rf bin/$hexen2demo_dir } # # Boot modules # # generic modules set boot_modules { core init timer audio_drv usb_drv uhexen2 ld.lib.so libc.lib.so libm.lib.so lwip.lib.so sdl.lib.so sdl_mixer.lib.so pthread.lib.so hexen2demo_data.tar } # platform-specific modules append_platform_drv_boot_modules lappend_if [expr !$usb_only] boot_modules input_merger lappend_if [have_spec linux] boot_modules fb_sdl lappend_if [have_spec vesa] boot_modules fb_drv lappend_if [have_spec ps2] boot_modules ps2_drv lappend_if [have_spec pl11x] boot_modules fb_drv build_boot_image $boot_modules append qemu_args " -m 512 -soundhw es1370 " run_genode_until forever