# # Build # # depends on genodelabs/genode#1806 if {[have_spec pbxa9] || (![have_spec nova] && ![have_spec foc])} { puts "Platform is unsupported." exit 0 } set mke2fs [installed_command mke2fs] set dd [installed_command dd] set build_components { core init timer app/avconv drivers/ahci server/vfs lib/vfs/rump drivers/framebuffer drivers/input server/nitpicker server/gui_fb app/launchpad app/pointer lib/mesa/swrast test/mesa_demo/gears server/fb_splitter } source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components build $build_components # # Build EXT2-file-system image # catch { exec $dd if=/dev/zero of=bin/ext2.raw bs=1M count=16 } catch { exec $mke2fs -F bin/ext2.raw } # # Generate config # create_boot_directory set config { } append_platform_drv_config append config { } append_if [have_spec sdl] config { } append_if [have_spec framebuffer] config { } append_if [have_spec ps2] config { } append config { 2018-01-01 00:01 2018-01-01 00:01 } install_config $config # # Boot modules # set boot_modules { core init timer avconv vfs.lib.so avresample.lib.so ld.lib.so libc.lib.so libm.lib.so posix.lib.so zlib.lib.so avdevice.lib.so avfilter.lib.so avutil.lib.so avcodec.lib.so avformat.lib.so swscale.lib.so ahci_drv rump.lib.so rump_fs.lib.so vfs vfs_rump.lib.so nitpicker gui_fb launchpad pointer gears egl.lib.so expat.lib.so glapi.lib.so mesa.lib.so stdcxx.lib.so egl_swrast.lib.so fb_splitter } lappend_if [have_spec linux] boot_modules fb_sdl lappend_if [have_spec linux] boot_modules sdl.lib.so lappend_if [have_spec x86] boot_modules vesa_fb_drv lappend_if [have_spec ps2] boot_modules ps2_drv append_platform_drv_boot_modules build_boot_image $boot_modules append qemu_args " -smp 4,cores=4 " append qemu_args " -drive id=disk,file=bin/ext2.raw,if=none -device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0 -boot d" run_genode_until {.*child "avconv" exited with exit value 0.*} 60 puts "Test succeeded"