if {[have_spec linux] && ($use_iris || $use_etnaviv)} { puts "Hardware driver not supported on Linux." exit 1 } if {[have_include power_on/qemu] && ($use_iris || $use_etnaviv)} { puts "Hardware driver not supported in Qemu." exit 1 } create_boot_directory set imports { } if {$use_etnaviv} { lappend imports [depot_user]/pkg/drivers_managed-[board] } else { lappend imports [depot_user]/pkg/drivers_interactive-[board] } lappend imports [depot_user]/src/nitpicker lappend imports [depot_user]/src/report_rom import_from_depot $imports set build_components { drivers/gpu/intel lib/mesa/softpipe core init timer } lappend_if $use_iris build_components lib/mesa/iris lappend_if $use_etnaviv build_components lib/mesa/etnaviv lappend_if $use_etnaviv build_components drivers/gpu/etnaviv lappend build_components $demo_component build $build_components set config { } set backend_library mesa_gpu-softpipe.lib.so if {$use_iris} { set backend_library mesa_gpu-iris.lib.so } if {$use_etnaviv} { set backend_library mesa_gpu-etnaviv.lib.so } append config " " append config $demo_config append config " " append config { } append_if $use_iris config { } append_if $use_etnaviv 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 zlib.lib.so core init ld.lib.so timer mesa_gpu-softpipe.lib.so libdrm.lib.so } append_if $use_iris boot_modules { mesa_gpu-iris.lib.so libdrm.lib.so intel_gpu_drv } append_if $use_etnaviv boot_modules { mesa_gpu-etnaviv.lib.so libdrm.lib.so imx8q_gpu_drv } append boot_modules $demo_modules build_boot_image $boot_modules append qemu_args " -m 768" run_genode_until forever