#
# This is a skeleton for simple interactive system scenarios that solely rely
# on a framebuffer and input device. The following variables should/can be
# defined prior including this file:
#
# fb_config - optional XML config to be passed to the fb_drv
# build_components - application-specific build supplements
# boot_modules - application-specific boot modules
# app_config - start node(s) of init for running the application
#
create_boot_directory
import_from_depot [depot_user]/src/[base_src] \
[depot_user]/pkg/[drivers_interactive_pkg] \
[depot_user]/src/init \
[depot_user]/src/nitpicker \
[depot_user]/pkg/motif_wm \
if {![info exists fb_config]} {
set fb_config {} }
set fd [open [run_dir]/genode/fb_drv.config w]
puts $fd $fb_config
close $fd
install_config {
} $app_config {
}
build $build_components
#
# Pin the nitpicker focus to the window manager by providing a static focus ROM
#
set fd [open [run_dir]/genode/focus w]
puts $fd " focus\"/>"
close $fd
file copy -force [genode_dir]/repos/gems/recipes/raw/motif_wm/wm.config [run_dir]/genode/
build_boot_image $boot_modules
run_genode_until forever