# # Build # if {[have_include power_on/qemu]} { puts "\nAbort, using Qemu is not recommended.\n" exit 0 } set build_components { core init timer drivers/audio server/report_rom server/dynamic_rom app/audio_player } source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components build $build_components create_boot_directory # # Config # append config { } append_platform_drv_config append config { } install_config $config # # Check audio files # if {[expr ![file exists bin/foo.flac] || ![file exists bin/foo.mp3] || ![file exists bin/foo.ogg]]} { puts "" puts "One or all audio files are missing. Please put 'foo.flac', 'foo.mp3' and" puts "'foo.ogg' into './bin' and execute this run script again. Note, that the" puts "duration of each of those files has to be below 10 seconds for this run" puts "script to work properly." puts "" exit 1 } # # Boot modules # append boot_modules { core init timer dynamic_rom report_rom } [audio_drv_binary] { ld.lib.so libc.lib.so vfs.lib.so libm.lib.so zlib.lib.so avcodec.lib.so avformat.lib.so avutil.lib.so avresample.lib.so pthread.lib.so audio_player foo.mp3 foo.flac foo.ogg } append_platform_drv_boot_modules build_boot_image $boot_modules append qemu_args " -soundhw es1370 " run_genode_until forever