if {[have_spec linux] && $use_i965} { puts "i965 driver not supported on Linux." exit 1 } if {[have_include power_on/qemu] && $use_i965} { puts "i965 driver not supported in Qemu." exit 1 } set build_components { core init drivers/timer drivers/input drivers/framebuffer drivers/gpu/intel server/liquid_framebuffer server/nitpicker lib/mesa/swrast app/launchpad app/pointer } lappend_if $use_i965 build_components lib/mesa/i965 lappend build_components $demo_component source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components build $build_components create_boot_directory set config { } append_if [have_spec linux] config { } append_platform_drv_config append_if [expr ![have_spec linux]] config { } append_if [have_spec ps2] config { } append config { } # # # set backend_library egl_swrast.lib.so if {$use_i965} { set backend_library egl_i965.lib.so } set launchpad_config { } append launchpad_config " " append launchpad_config $demo_config append launchpad_config " " append launchpad_config { } append config { } append config $launchpad_config append config { } append_if $use_i965 config { } append config { } install_config $config set boot_modules { core init ld.lib.so timer nitpicker pointer liquid_fb launchpad libc.lib.so vfs.lib.so libm.lib.so pthread.lib.so egl.lib.so mesa.lib.so stdcxx.lib.so expat.lib.so glapi.lib.so egl_swrast.lib.so } append_if $use_i965 boot_modules { egl_i965.lib.so drm.lib.so intel_gpu_drv } append boot_modules $demo_modules lappend_if [have_spec linux] boot_modules fb_sdl lappend_if [expr ![have_spec linux]] boot_modules fb_drv lappend_if [have_spec ps2] boot_modules ps2_drv append_platform_drv_boot_modules build_boot_image $boot_modules append qemu_args " -m 768" run_genode_until forever