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 } create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/pkg/[drivers_interactive_pkg] \ [depot_user]/src/nitpicker \ [depot_user]/src/demo \ [depot_user]/src/init set build_components { drivers/gpu/intel lib/mesa/swrast } lappend_if $use_i965 build_components lib/mesa/i965 lappend build_components $demo_component build $build_components set 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 { libc.lib.so vfs.lib.so libm.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 build_boot_image $boot_modules append qemu_args " -m 768" run_genode_until forever