# # Build # build { core init drivers/timer drivers/framebuffer drivers/pci drivers/input drivers/audio_out server/mixer app/avplay drivers/acpi } # # Download media file # set media_url "ftp://ftp.untergrund.net/users/ae/dhstv/escape-chotro.mp4" if {![file exists bin/mediafile]} { puts "downloading media file from $media_url" catch { exec wget -O bin/mediafile $media_url } } # # Generate config # create_boot_directory set config { } append_if [have_spec sdl] config { } append_if [have_spec acpi] config { } append_if [expr [have_spec pci] && ![have_spec acpi]] config { } append_if [have_spec framebuffer] config { } append_if [have_spec ps2] config { } append config { } install_config $config # # Boot modules # set boot_modules { core init timer audio_out_drv mixer avplay ld.lib.so libc.lib.so libm.lib.so pthread.lib.so zlib.lib.so sdl.lib.so avfilter.lib.so avutil.lib.so avcodec.lib.so avformat.lib.so swscale.lib.so mediafile } lappend_if [have_spec linux] boot_modules fb_sdl lappend_if [have_spec pci] boot_modules pci_drv lappend_if [have_spec pci] boot_modules acpi_drv lappend_if [have_spec framebuffer] boot_modules fb_drv lappend_if [have_spec ps2] boot_modules ps2_drv lappend_if [have_spec nova] boot_modules pci_device_pd build_boot_image $boot_modules append qemu_args " -m 256 -soundhw es1370" run_genode_until forever