2018-04-24 10:40:22 +00:00
|
|
|
create_boot_directory
|
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
import_from_depot [depot_user]/pkg/[drivers_interactive_pkg] \
|
|
|
|
[depot_user]/pkg/themed_wm \
|
|
|
|
[depot_user]/raw/qt5_dejavusans \
|
|
|
|
[depot_user]/src/[base_src] \
|
2018-08-15 07:22:09 +00:00
|
|
|
[depot_user]/src/expat \
|
2020-06-28 12:21:09 +00:00
|
|
|
[depot_user]/src/global_keys_handler \
|
2018-08-15 07:22:09 +00:00
|
|
|
[depot_user]/src/init \
|
|
|
|
[depot_user]/src/libc \
|
|
|
|
[depot_user]/src/mesa \
|
|
|
|
[depot_user]/src/nitpicker \
|
2020-06-28 12:21:09 +00:00
|
|
|
[depot_user]/src/qt5_base \
|
2018-08-15 07:22:09 +00:00
|
|
|
[depot_user]/src/report_rom \
|
2020-06-28 12:21:09 +00:00
|
|
|
[depot_user]/src/rom_filter \
|
2018-08-15 07:22:09 +00:00
|
|
|
[depot_user]/src/stdcxx \
|
|
|
|
[depot_user]/src/vfs \
|
2020-05-12 06:10:00 +00:00
|
|
|
[depot_user]/src/vfs_pipe \
|
2014-05-20 20:52:55 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Configuration
|
|
|
|
#
|
|
|
|
|
2018-10-02 15:45:22 +00:00
|
|
|
proc qt5_layouter_config { } {
|
|
|
|
return {
|
|
|
|
<config rules="rom">
|
|
|
|
<report rules="yes"/>
|
|
|
|
<rules>
|
|
|
|
<screen name="screen"/>
|
|
|
|
<assign label_prefix="" target="screen" xpos="any" ypos="any"/>
|
|
|
|
</rules>
|
|
|
|
</config>}
|
|
|
|
}
|
|
|
|
|
|
|
|
proc qt5_decorator_binary { } { return "decorator" }
|
|
|
|
|
|
|
|
proc qt5_decorator_config { } {
|
|
|
|
return {
|
|
|
|
<config>
|
|
|
|
<!-- this is an example config for the themed decorator
|
|
|
|
<vfs>
|
|
|
|
<tar name="plain_decorator_theme.tar"/>
|
|
|
|
</vfs>
|
|
|
|
<libc/>
|
|
|
|
-->
|
2019-02-19 11:43:30 +00:00
|
|
|
<default-policy/>
|
2018-10-02 15:45:22 +00:00
|
|
|
</config>}
|
|
|
|
}
|
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
proc qt5_parent_provides { } {
|
2014-05-20 20:52:55 +00:00
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
set parent_provides { }
|
2014-05-20 20:52:55 +00:00
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
append 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"/>
|
|
|
|
}
|
2014-05-20 20:52:55 +00:00
|
|
|
|
|
|
|
return $parent_provides
|
|
|
|
}
|
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
#
|
|
|
|
# Keyboard layout - this function can be overridden in a run script
|
|
|
|
#
|
|
|
|
proc language_chargen { } { return "en_us" }
|
|
|
|
|
2020-07-16 09:28:18 +00:00
|
|
|
exec cp -f [genode_dir]/repos/os/src/server/event_filter/[language_chargen].chargen bin/
|
|
|
|
exec cp -f [genode_dir]/repos/os/src/server/event_filter/special.chargen bin/
|
|
|
|
|
|
|
|
set qt5_event_filter_config {
|
|
|
|
<config>
|
2020-06-28 12:21:09 +00:00
|
|
|
<output>
|
|
|
|
<chargen>
|
|
|
|
<remap>
|
|
|
|
<include rom="numlock.remap"/>
|
|
|
|
<merge>}
|
2020-07-16 09:28:18 +00:00
|
|
|
append_if [have_spec ps2] qt5_event_filter_config {
|
2020-06-28 12:21:09 +00:00
|
|
|
<input name="ps2"/>}
|
2020-07-16 09:28:18 +00:00
|
|
|
append_if [have_spec usb] qt5_event_filter_config {
|
2020-06-28 12:21:09 +00:00
|
|
|
<input name="usb"/>}
|
2020-07-16 09:28:18 +00:00
|
|
|
append_if [have_spec linux] qt5_event_filter_config {
|
2020-06-28 12:21:09 +00:00
|
|
|
<input name="sdl"/>}
|
2020-07-16 09:28:18 +00:00
|
|
|
append qt5_event_filter_config {
|
2020-06-28 12:21:09 +00:00
|
|
|
</merge>
|
|
|
|
</remap>
|
|
|
|
<mod1>
|
|
|
|
<key name="KEY_LEFTSHIFT"/> <key name="KEY_RIGHTSHIFT"/>
|
|
|
|
</mod1>
|
|
|
|
<mod2>
|
|
|
|
<key name="KEY_LEFTCTRL"/> <key name="KEY_RIGHTCTRL"/>
|
|
|
|
</mod2>
|
|
|
|
<mod3>
|
|
|
|
<key name="KEY_RIGHTALT"/> <!-- AltGr -->
|
|
|
|
</mod3>
|
|
|
|
<mod4>
|
|
|
|
<rom name="capslock"/>
|
|
|
|
</mod4>
|
|
|
|
<repeat delay_ms="500" rate_ms="50"/>}
|
2020-07-16 09:28:18 +00:00
|
|
|
append qt5_event_filter_config "
|
2020-06-28 12:21:09 +00:00
|
|
|
<include rom=\"[language_chargen].chargen\"/>"
|
2020-07-16 09:28:18 +00:00
|
|
|
append qt5_event_filter_config {
|
2020-06-28 12:21:09 +00:00
|
|
|
<include rom="special.chargen"/>
|
|
|
|
</chargen>
|
2020-07-16 09:28:18 +00:00
|
|
|
</output>}
|
|
|
|
append_if [have_spec ps2] qt5_event_filter_config {
|
|
|
|
<policy label="ps2" input="ps2"/>}
|
|
|
|
append_if [have_spec usb] qt5_event_filter_config {
|
|
|
|
<policy label="usb" input="usb"/>}
|
|
|
|
append_if [have_spec linux] qt5_event_filter_config {
|
|
|
|
<policy label="sdl" input="sdl"/>}
|
|
|
|
append qt5_event_filter_config {
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
set fd [open bin/qt5_event_filter.config w]
|
|
|
|
puts $fd $qt5_event_filter_config
|
2020-06-28 12:21:09 +00:00
|
|
|
close $fd
|
|
|
|
|
2014-05-20 20:52:55 +00:00
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
proc qt5_start_nodes { } {
|
2014-05-20 20:52:55 +00:00
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
set start_nodes { }
|
2014-05-20 20:52:55 +00:00
|
|
|
|
|
|
|
append start_nodes {
|
2020-06-28 12:21:09 +00:00
|
|
|
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<!-- toggle key mappings depending on the numlock state -->
|
|
|
|
<start name="numlock_remap_rom">
|
|
|
|
<binary name="rom_filter"/>
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="ROM"/> </provides>
|
|
|
|
<config>
|
|
|
|
<input name="numlock_enabled" rom="numlock" node="numlock">
|
|
|
|
<attribute name="enabled"/> </input>
|
|
|
|
<output node="remap">
|
|
|
|
<if>
|
|
|
|
<has_value input="numlock_enabled" value="no"/>
|
|
|
|
<then>
|
|
|
|
<inline>
|
|
|
|
<key name="KEY_KP0" to="KEY_INSERT"/>
|
|
|
|
<key name="KEY_KP1" to="KEY_END"/>
|
|
|
|
<key name="KEY_KP2" to="KEY_DOWN"/>
|
|
|
|
<key name="KEY_KP3" to="KEY_PAGEDOWN"/>
|
|
|
|
<key name="KEY_KP4" to="KEY_LEFT"/>
|
|
|
|
<key name="KEY_KP5" to="KEY_RESERVED"/>
|
|
|
|
<key name="KEY_KP6" to="KEY_RIGHT"/>
|
|
|
|
<key name="KEY_KP7" to="KEY_HOME"/>
|
|
|
|
<key name="KEY_KP8" to="KEY_UP"/>
|
|
|
|
<key name="KEY_KP9" to="KEY_PAGEUP"/>
|
|
|
|
<key name="KEY_KPDOT" to="KEY_DELETE"/>
|
|
|
|
</inline>
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
</output>
|
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="numlock"> <child name="wm_report_rom"/> </service>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2020-07-16 09:28:18 +00:00
|
|
|
<start name="drivers" caps="1500">
|
2020-06-28 12:21:09 +00:00
|
|
|
<resource name="RAM" quantum="64M" constrain_phys="yes"/>
|
|
|
|
<binary name="init"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="config"> <parent label="drivers.config"/> </service>
|
2020-07-16 09:28:18 +00:00
|
|
|
<service name="ROM" label="event_filter.config"> <parent label="qt5_event_filter.config"/> </service>
|
|
|
|
<service name="ROM" label="event_filter -> capslock"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="event_filter -> numlock.remap"> <child name="numlock_remap_rom"/> </service>
|
2020-07-01 20:26:11 +00:00
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<service name="Capture"> <child name="nitpicker"/> </service>
|
2020-07-16 09:28:18 +00:00
|
|
|
<service name="Event"> <child name="nitpicker"/> </service>
|
2020-06-28 12:21:09 +00:00
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2018-10-02 15:45:22 +00:00
|
|
|
<start name="nitpicker" caps="200">
|
2017-02-02 17:26:57 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
2020-07-16 09:28:18 +00:00
|
|
|
<provides>
|
|
|
|
<service name="Gui"/> <service name="Capture"/> <service name="Event"/>
|
|
|
|
</provides>
|
2020-06-28 12:21:09 +00:00
|
|
|
<route>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="Report"> <child name="wm_report_rom"/> </service>
|
2014-12-04 15:41:12 +00:00
|
|
|
<any-service> <parent /> <any-child /> </any-service>
|
|
|
|
</route>
|
2020-07-16 09:28:18 +00:00
|
|
|
<config request_framebuffer="no" request_input="no">
|
|
|
|
<capture/> <event/>
|
2020-07-01 20:26:11 +00:00
|
|
|
|
2017-11-24 19:23:45 +00:00
|
|
|
<report focus="yes" hover="yes" xray="yes"/>
|
2015-10-28 15:14:12 +00:00
|
|
|
|
2015-09-30 09:30:02 +00:00
|
|
|
<domain name="pointer" layer="1" label="no" content="client" origin="pointer" />
|
2020-07-01 20:26:11 +00:00
|
|
|
<domain name="default" layer="2" label="no" content="client"
|
|
|
|
focus="click" hover="always" width="1024" height="768"/>
|
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"/>
|
2018-08-15 11:36:51 +00:00
|
|
|
|
|
|
|
<global-key name="KEY_CAPSLOCK" label="global_keys_handler -> input" />
|
|
|
|
<global-key name="KEY_NUMLOCK" label="global_keys_handler -> input" />
|
2014-05-20 20:52:57 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
2014-07-03 12:26:29 +00:00
|
|
|
|
|
|
|
<start name="pointer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
2017-11-24 19:23:45 +00:00
|
|
|
<provides> <service name="Report"/> </provides>
|
|
|
|
<config shapes="yes"/>
|
2014-07-03 12:26:29 +00:00
|
|
|
<route>
|
2020-06-11 14:06:21 +00:00
|
|
|
<service name="Gui"> <child name="nitpicker"/> </service>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="ROM" label="hover"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="xray"> <child name="wm_report_rom"/> </service>
|
2014-07-03 12:26:29 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2018-10-02 15:45:22 +00:00
|
|
|
<start name="wm_report_rom">
|
|
|
|
<binary name="report_rom"/>
|
2015-09-17 10:50:42 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Report"/>
|
|
|
|
<service name="ROM"/>
|
|
|
|
</provides>
|
2018-10-02 15:45:22 +00:00
|
|
|
<config verbose="no">
|
2020-06-28 12:21:09 +00:00
|
|
|
<policy label="layouter -> focus_request" report="wm -> focus_request"/>
|
|
|
|
<policy label="decorator -> pointer" report="wm -> pointer"/>
|
|
|
|
<policy label="layouter -> window_list" report="wm -> window_list"/>
|
|
|
|
<policy label="wm -> focus" report="layouter -> focus"/>
|
|
|
|
<policy label="wm -> resize_request" report="layouter -> resize_request"/>
|
|
|
|
<policy label="decorator -> window_layout" report="layouter -> window_layout"/>
|
|
|
|
<policy label="layouter -> rules" report="layout_rules"/>
|
|
|
|
<policy label="layouter -> decorator_margins" report="decorator -> decorator_margins"/>
|
|
|
|
<policy label="layouter -> hover" report="decorator -> hover"/>
|
|
|
|
<policy label="clipboard -> focus" report="nitpicker -> focus"/>
|
|
|
|
<policy label="pointer -> hover" report="nitpicker -> hover"/>
|
|
|
|
<policy label="pointer -> xray" report="nitpicker -> xray"/>
|
2020-07-16 09:28:18 +00:00
|
|
|
<policy label="drivers -> event_filter -> capslock" report="global_keys_handler -> capslock"/>
|
2020-06-28 12:21:09 +00:00
|
|
|
<policy label="numlock_remap_rom -> numlock" report="global_keys_handler -> numlock"/>
|
|
|
|
<policy label="ps2_drv -> capslock" report="global_keys_handler -> capslock"/>
|
|
|
|
<policy label="ps2_drv -> numlock" report="global_keys_handler -> numlock"/>
|
|
|
|
<policy label="usb_drv -> capslock" report="global_keys_handler -> capslock"/>
|
|
|
|
<policy label="usb_drv -> numlock" report="global_keys_handler -> numlock"/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2018-08-15 11:36:51 +00:00
|
|
|
<start name="global_keys_handler">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<config>
|
|
|
|
<bool name="capslock" initial="no"/>
|
|
|
|
<bool name="numlock" initial="no"/>
|
|
|
|
|
|
|
|
<press name="KEY_CAPSLOCK" bool="capslock" change="toggle"/>
|
|
|
|
<press name="KEY_NUMLOCK" bool="numlock" change="toggle"/>
|
|
|
|
|
2020-06-11 14:06:21 +00:00
|
|
|
<report name="capslock"> <bool name="capslock"/> </report>
|
|
|
|
<report name="numlock"> <bool name="numlock"/> </report>
|
2018-08-15 11:36:51 +00:00
|
|
|
</config>
|
|
|
|
<route>
|
2020-06-11 14:06:21 +00:00
|
|
|
<service name="Report"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="Gui"> <child name="nitpicker"/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
2018-08-15 11:36:51 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2018-10-02 15:45:22 +00:00
|
|
|
<start name="wm" caps="250">
|
|
|
|
<resource name="RAM" quantum="8M"/>
|
2015-09-17 10:50:42 +00:00
|
|
|
<provides>
|
2020-06-11 14:06:21 +00:00
|
|
|
<service name="Gui"/> <service name="Report"/> <service name="ROM"/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</provides>
|
|
|
|
<config>
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="decorator" role="decorator"/>
|
|
|
|
<policy label_prefix="layouter" role="layouter"/>
|
2019-02-19 11:43:30 +00:00
|
|
|
<default-policy/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</config>
|
2014-05-20 20:52:57 +00:00
|
|
|
<route>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="ROM" label="focus"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="resize_request"> <child name="wm_report_rom"/> </service>
|
2019-02-18 15:02:29 +00:00
|
|
|
<service name="Report" label_last="shape"> <child name="pointer"/> </service>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="Report"> <child name="wm_report_rom"/> </service>
|
2015-09-17 10:50:42 +00:00
|
|
|
<any-service>
|
2017-02-02 17:26:57 +00:00
|
|
|
<child name="nitpicker"/> <parent/> <any-child/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="layouter">
|
2018-09-26 09:36:36 +00:00
|
|
|
<binary name="window_layouter"/>
|
2018-10-02 15:45:22 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>} [qt5_layouter_config] {
|
2015-09-17 10:50:42 +00:00
|
|
|
<route>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="ROM" label="window_list"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="focus_request"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="hover"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="decorator_margins"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="rules"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="Report" label="rules"> <child name="wm_report_rom" label="layout_rules"/> </service>
|
|
|
|
<service name="Report"> <child name="wm_report_rom"/> </service>
|
2015-09-17 10:50:42 +00:00
|
|
|
<any-service>
|
2017-02-02 17:26:57 +00:00
|
|
|
<child name="wm"/> <parent/> <any-child/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2018-10-02 15:45:22 +00:00
|
|
|
<start name="decorator" caps="300">
|
|
|
|
<binary name="} [qt5_decorator_binary] {"/>
|
2020-06-16 13:46:59 +00:00
|
|
|
<resource name="RAM" quantum="32M"/>} [qt5_decorator_config] {
|
2015-09-17 10:50:42 +00:00
|
|
|
<route>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="ROM" label="window_layout"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="pointer"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="Report"> <child name="wm_report_rom"/> </service>
|
2015-09-17 10:50:42 +00:00
|
|
|
<any-service>
|
2017-02-02 17:26:57 +00:00
|
|
|
<child name="wm"/> <parent/> <any-child/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</any-service>
|
2014-05-20 20:52:57 +00:00
|
|
|
</route>
|
2014-05-20 20:52:55 +00:00
|
|
|
</start>
|
|
|
|
}
|
|
|
|
|
|
|
|
return $start_nodes
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
proc qt5_boot_modules { } {
|
2014-05-20 20:52:55 +00:00
|
|
|
|
2018-04-24 10:40:22 +00:00
|
|
|
set boot_modules { }
|
2014-05-20 20:52:55 +00:00
|
|
|
|
2020-06-28 12:21:09 +00:00
|
|
|
lappend boot_modules [language_chargen].chargen
|
|
|
|
lappend boot_modules special.chargen
|
2020-07-16 09:28:18 +00:00
|
|
|
lappend boot_modules qt5_event_filter.config
|
2014-05-20 20:52:55 +00:00
|
|
|
}
|