# # Build # if {[have_include "power_on/qemu"]} { puts "\nRunning on Qemu is not recommended.\n" exit 1 } # # On x86 systems w/o ps2 only use usb input # set use_usb_input_only 0 set use_audio [expr ![have_spec arm]] set build_components { core init drivers/timer drivers/framebuffer drivers/input app/chocolate-doom/doom } if {[have_spec linux]} { set use_usb_input_only 1 } lappend_if $use_audio build_components drivers/audio source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components lappend_if [expr ![have_spec linux]] build_components drivers/usb lappend_if [expr !$use_usb_input_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] && !$use_usb_input_only] config { } append_if [expr ![have_spec linux]] config { } append_if $use_audio config { } append_if [expr !$use_usb_input_only] config { } append config { } append_if [expr !$use_usb_input_only] config { } append config { } install_config $config if {![file exists bin/data.tar]} { if {![file exists bin/doom1.wad]} { puts "" puts "Please download the Doom 1 Shareware IWAD from" puts " http://distro.ibiblio.org/pub/linux/distributions/slitaz/sources/packages/d/doom1.wad" puts "and place it in './bin'. Afterwards run this script again." puts "" exit 1 } } # # Boot modules # # generic modules append boot_modules { core init timer } [audio_drv_binary] { ld.lib.so libc.lib.so libm.lib.so pthread.lib.so sdl.lib.so sdl_net.lib.so sdl_mixer.lib.so chocolate-doom doom1.wad } # platform-specific modules append_platform_drv_boot_modules lappend_if $use_audio boot_modules audio_drv lappend_if [have_spec linux] boot_modules fb_sdl lappend_if [have_spec vesa] boot_modules fb_drv lappend_if [expr ![have_spec linux]] boot_modules usb_drv lappend_if [expr !$use_usb_input_only] boot_modules input_merger lappend_if [expr [have_spec ps2] && !$use_usb_input_only] boot_modules ps2_drv lappend_if [have_spec pl11x] boot_modules fb_drv build_boot_image $boot_modules run_genode_until forever