From 4550056de7105f35ef8284be7e85a255d94b30f6 Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Fri, 3 May 2019 13:19:17 +0200 Subject: [PATCH] run: use drivers_interactive-* pkg where possible Ref #2190 --- repos/libports/run/mesa.inc | 74 +++++++---------------- repos/os/run/fb_bench.run | 73 ++++++----------------- repos/os/run/framebuffer.run | 79 ++++++------------------- repos/os/run/loader.run | 92 +++++++++-------------------- repos/ports/run/debug_nitpicker.run | 86 ++++++++++----------------- 5 files changed, 115 insertions(+), 289 deletions(-) diff --git a/repos/libports/run/mesa.inc b/repos/libports/run/mesa.inc index f31a16cb4..478f38c0a 100644 --- a/repos/libports/run/mesa.inc +++ b/repos/libports/run/mesa.inc @@ -9,30 +9,23 @@ if {[have_include power_on/qemu] && $use_i965} { 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 { - core init 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 { @@ -49,39 +42,25 @@ 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 { + + + + + + + + + + + + + + @@ -97,10 +76,6 @@ append config { } -# -# -# - set backend_library egl_swrast.lib.so if {$use_i965} { set backend_library egl_i965.lib.so @@ -191,13 +166,6 @@ append_if $use_i965 boot_modules { } 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" diff --git a/repos/os/run/fb_bench.run b/repos/os/run/fb_bench.run index 71266151c..bb283036e 100644 --- a/repos/os/run/fb_bench.run +++ b/repos/os/run/fb_bench.run @@ -1,7 +1,3 @@ -# -# Build -# - if {[have_spec odroid_xu] || [have_spec imx6q_sabrelite] || [have_spec zynq] || [have_spec imx53] && [have_spec foc]} { puts "\n Run script is not supported on this platform. \n"; exit 0 @@ -12,22 +8,13 @@ if {[get_cmd_switch --autopilot] && [have_spec linux]} { exit 0 } -set build_components { core init test/fb_bench drivers/framebuffer timer } - -source ${genode_dir}/repos/base/run/platform_drv.inc -append_platform_drv_build_components - -lappend_if [have_spec gpio] build_components drivers/gpio - -build $build_components - create_boot_directory +import_from_depot [depot_user]/src/[base_src] \ + [depot_user]/pkg/[drivers_interactive_pkg] \ + [depot_user]/src/init +build { test/fb_bench } -# -# Generate config -# - -append config { +install_config { @@ -47,33 +34,21 @@ append config { - } + -append_if [have_spec gpio] config " - - - - - " - -append_if [have_spec sdl] config { - - + + + + + + + + - - + - } + -append_platform_drv_config - -append_if [have_spec framebuffer] config { - - - - } - -append config {