assert_spec x86 # # Check used commands # set wget [installed_command wget] # # Configure # set use_mixer 0 # # Build # set build_components { core init timer drivers/audio test/audio_out } lappend_if $use_mixer build_components server/mixer 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_if $use_mixer config { } append_if [have_spec linux] config { } append_if [expr ![have_spec linux]] config { } append config { sample.raw } append_if $use_mixer config { } append config { } install_config $config # # Get sample file # if {[info exists env(GENODE_SAMPLE_RAW)]} { catch { exec $wget $::env(GENODE_SAMPLE_RAW) -O bin/sample.raw } } if {![file exists bin/sample.raw]} { puts "" puts "The sample file is missing. Please take a look at" puts "repos/dde_bsd/README, create 'sample.raw' and put" puts "the file into './bin'. afterwards" puts "" exit 1 } # # Boot modules # append boot_modules { core ld.lib.so init timer } [audio_drv_binary] { test-audio_out sample.raw } lappend_if $use_mixer boot_modules mixer append_platform_drv_boot_modules build_boot_image $boot_modules append qemu_args " -nographic -soundhw es1370 " # # For obvious reasons the timeout depends on the total # length of the used sample file. # run_genode_until {.*played.*1 time\(s\)} 60