2014-01-06 18:15:14 +00:00
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
2018-11-13 10:55:46 +00:00
|
|
|
# To use the themed decorator instead of the default one, replace
|
|
|
|
# 'pkg/motif_wm' with 'pkg/themed_wm'.
|
2014-01-06 18:15:14 +00:00
|
|
|
#
|
|
|
|
|
2019-02-19 13:24:52 +00:00
|
|
|
import_from_depot [depot_user]/src/[base_src] \
|
|
|
|
[depot_user]/pkg/[drivers_interactive_pkg] \
|
|
|
|
[depot_user]/pkg/motif_wm \
|
|
|
|
[depot_user]/raw/genode_bg \
|
|
|
|
[depot_user]/pkg/backdrop \
|
|
|
|
[depot_user]/src/demo \
|
|
|
|
[depot_user]/src/init \
|
|
|
|
[depot_user]/src/nitpicker \
|
|
|
|
[depot_user]/src/nit_fb \
|
|
|
|
[depot_user]/src/vfs
|
2017-04-14 17:19:39 +00:00
|
|
|
|
|
|
|
install_config {
|
2014-08-25 16:27:33 +00:00
|
|
|
<config prio_levels="2">
|
2014-01-06 18:15:14 +00:00
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
2017-04-14 17:19:39 +00:00
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2014-01-06 18:15:14 +00:00
|
|
|
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
2017-04-14 17:19:39 +00:00
|
|
|
|
2017-05-07 20:36:11 +00:00
|
|
|
<start name="drivers" caps="1000">
|
2017-11-07 10:28:50 +00:00
|
|
|
<resource name="RAM" quantum="32M" constrain_phys="yes"/>
|
2017-04-14 17:19:39 +00:00
|
|
|
<binary name="init"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="config"> <parent label="drivers.config"/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
<provides>
|
|
|
|
<service name="Input"/> <service name="Framebuffer"/>
|
|
|
|
</provides>
|
|
|
|
</start>
|
|
|
|
|
2014-01-06 18:15:14 +00:00
|
|
|
<start name="nitpicker">
|
2017-02-02 17:42:35 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>
|
2014-01-06 18:15:14 +00:00
|
|
|
<provides><service name="Nitpicker"/></provides>
|
2018-04-06 07:29:46 +00:00
|
|
|
<config focus="rom">
|
2015-09-30 09:30:02 +00:00
|
|
|
<domain name="pointer" layer="1" content="client" label="no" origin="pointer" />
|
2018-04-06 07:29:46 +00:00
|
|
|
<domain name="default" layer="2" content="client" label="no" hover="always"/>
|
2015-09-30 09:30:02 +00:00
|
|
|
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="pointer" domain="pointer"/>
|
2016-03-09 14:32:23 +00:00
|
|
|
<default-policy domain="default"/>
|
2014-01-06 18:15:14 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
2017-04-14 17:19:39 +00:00
|
|
|
|
2014-01-06 18:15:14 +00:00
|
|
|
<start name="pointer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<route>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
2017-04-14 17:19:39 +00:00
|
|
|
|
2017-05-07 20:36:11 +00:00
|
|
|
<start name="wm" caps="1000">
|
2018-04-06 07:29:46 +00:00
|
|
|
<resource name="RAM" quantum="32M"/>
|
2017-03-31 06:59:53 +00:00
|
|
|
<binary name="init"/>
|
2019-02-18 15:02:29 +00:00
|
|
|
<provides> <service name="Nitpicker"/> <service name="Report"/> </provides>
|
2014-01-06 18:15:14 +00:00
|
|
|
<route>
|
2017-03-31 06:59:53 +00:00
|
|
|
<service name="ROM" label="config"> <parent label="wm.config"/> </service>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
2014-01-06 18:15:14 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
2017-04-14 17:19:39 +00:00
|
|
|
|
2018-04-06 07:29:46 +00:00
|
|
|
<start name="launchpad" priority="-1" caps="1000">
|
2014-08-14 14:25:29 +00:00
|
|
|
<resource name="RAM" quantum="20M"/>
|
|
|
|
<config>
|
2018-04-06 07:29:46 +00:00
|
|
|
<launcher name="nit_fb" ram_quota="7M" caps="100">
|
2018-06-25 09:12:00 +00:00
|
|
|
<config initial_width="500" initial_height="400" />
|
2014-08-14 14:25:29 +00:00
|
|
|
</launcher>
|
2018-04-06 07:29:46 +00:00
|
|
|
<launcher name="nitpicker" ram_quota="1M" caps="100">
|
2014-08-14 14:25:29 +00:00
|
|
|
<config>
|
2018-04-06 07:29:46 +00:00
|
|
|
<domain name="default" layer="2" content="client"
|
|
|
|
label="no" hover="always" focus="click"/>
|
2016-03-09 14:32:23 +00:00
|
|
|
<default-policy domain="default"/>
|
2014-08-14 14:25:29 +00:00
|
|
|
</config>
|
|
|
|
</launcher>
|
2018-04-06 07:29:46 +00:00
|
|
|
<launcher name="testnit" ram_quota="1M" caps="100"/>
|
2014-08-14 14:25:29 +00:00
|
|
|
</config>
|
2014-01-06 18:15:14 +00:00
|
|
|
<route>
|
|
|
|
<any-service> <child name="wm"/> <parent/> <any-child/>
|
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
2017-04-14 17:19:39 +00:00
|
|
|
|
2014-08-25 16:27:33 +00:00
|
|
|
<start name="backdrop" priority="-1">
|
2017-03-24 16:41:30 +00:00
|
|
|
<resource name="RAM" quantum="24M"/>
|
2014-08-14 14:25:29 +00:00
|
|
|
<config>
|
2017-03-24 16:41:30 +00:00
|
|
|
<libc/>
|
|
|
|
<vfs>
|
|
|
|
<rom name="genode_logo.png"/>
|
|
|
|
<rom name="grid.png"/>
|
|
|
|
</vfs>
|
2014-08-14 14:25:29 +00:00
|
|
|
<fill color="#224433" />
|
|
|
|
<image png="grid.png" tiled="yes" alpha="200" />
|
|
|
|
<image png="genode_logo.png" anchor="bottom_right" alpha="150"
|
|
|
|
xpos="-20" ypos="-20" />
|
|
|
|
</config>
|
2014-01-06 18:15:14 +00:00
|
|
|
<route>
|
2017-03-24 16:41:30 +00:00
|
|
|
<any-service> <child name="nitpicker" label="backdrop"/> <parent/> <any-child/>
|
2014-01-06 18:15:14 +00:00
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
2017-04-14 17:19:39 +00:00
|
|
|
|
2014-08-25 16:27:33 +00:00
|
|
|
<start name="wm_backdrop" priority="-1">
|
2014-08-14 14:25:29 +00:00
|
|
|
<binary name="backdrop" />
|
2017-03-24 16:41:30 +00:00
|
|
|
<resource name="RAM" quantum="24M"/>
|
2014-01-06 18:15:14 +00:00
|
|
|
<config>
|
2017-03-24 16:41:30 +00:00
|
|
|
<libc/>
|
|
|
|
<vfs>
|
|
|
|
<rom name="genode_logo.png"/>
|
|
|
|
</vfs>
|
2014-08-14 14:25:29 +00:00
|
|
|
<fill color="#664455" />
|
|
|
|
<image png="genode_logo.png" scale="zoom" alpha="150" />
|
|
|
|
<image png="genode_logo.png" scale="fit" alpha="150" tiled="yes" />
|
|
|
|
<image png="genode_logo.png" />
|
2014-01-06 18:15:14 +00:00
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<any-service> <child name="wm"/> <parent/> <any-child/>
|
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
2018-04-06 07:29:46 +00:00
|
|
|
#
|
|
|
|
# Pin the nitpicker focus to the window manager by providing a static focus ROM
|
|
|
|
#
|
|
|
|
set fd [open [run_dir]/genode/focus w]
|
2019-03-14 11:14:28 +00:00
|
|
|
puts $fd "<focus label=\"wm -> focus\"/>"
|
2018-04-06 07:29:46 +00:00
|
|
|
close $fd
|
|
|
|
|
2018-12-11 09:12:32 +00:00
|
|
|
file copy -force [genode_dir]/repos/gems/recipes/raw/motif_wm/wm.config [run_dir]/genode/
|
2014-01-06 18:15:14 +00:00
|
|
|
|
2019-06-17 14:06:42 +00:00
|
|
|
build { app/window_layouter app/decorator server/nitpicker server/wm test/nitpicker }
|
2018-12-11 09:12:32 +00:00
|
|
|
|
2019-06-17 14:06:42 +00:00
|
|
|
build_boot_image { window_layouter decorator nitpicker wm testnit }
|
2014-01-06 18:15:14 +00:00
|
|
|
|
|
|
|
run_genode_until forever
|