mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 00:11:07 +00:00
a85c47134b
Fixes #3175
248 lines
7.7 KiB
Tcl
248 lines
7.7 KiB
Tcl
source ${genode_dir}/repos/libports/run/qt5_common.inc
|
|
|
|
import_from_depot [depot_user]/src/qt5_component \
|
|
[depot_user]/src/qt5_printsupport \
|
|
[depot_user]/src/qt5_textedit \
|
|
[depot_user]/src/qt5_widgets \
|
|
[depot_user]/src/dynamic_rom \
|
|
[depot_user]/src/test-tiled_wm
|
|
|
|
if {[have_spec odroid_xu]} {
|
|
puts "Run script does not support this platform."
|
|
exit 0
|
|
}
|
|
|
|
if {[have_spec linux]} {
|
|
set max_fds [exec bash -c "ulimit -n"]
|
|
if {$max_fds < 4096} {
|
|
puts stderr "\nMaximum number of file descriptors is too low for this run script."
|
|
puts stderr "You may use the following command to increase the limit:\n"
|
|
puts stderr " ulimit -n 4096\n"
|
|
exit 1
|
|
}
|
|
}
|
|
|
|
#
|
|
# Generate config
|
|
#
|
|
|
|
proc qt5_layouter_config { } {
|
|
return { <config rules="rom"> <report rules="no"/> </config>}
|
|
}
|
|
|
|
proc qt5_decorator_binary { } { return "themed_decorator" }
|
|
|
|
proc qt5_decorator_config { } {
|
|
return {
|
|
<config>
|
|
<vfs>
|
|
<dir name="theme">
|
|
<inline name="metadata">
|
|
<theme>
|
|
<aura top="0" bottom="0" left="0" right="0"/>
|
|
<decor top="0" bottom="0" left="0" right="0"/>
|
|
</theme>
|
|
</inline>
|
|
</dir>
|
|
</vfs>
|
|
<libc/>
|
|
<default-policy/>
|
|
</config>}
|
|
}
|
|
|
|
append config {
|
|
<config>
|
|
<parent-provides>} [qt5_parent_provides feature] {
|
|
</parent-provides>
|
|
<default caps="100"/>
|
|
<default-route>
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
</default-route>} [qt5_start_nodes feature] {
|
|
|
|
<start name="test_reports">
|
|
<binary name="report_rom"/>
|
|
<resource name="RAM" quantum="1M"/>
|
|
<provides> <service name="Report"/> <service name="ROM"/> </provides>
|
|
<config verbose="no">
|
|
<policy label="test-tiled_wm-panel -> apps" report="test-tiled_wm-manager -> apps"/>
|
|
<policy label="test-tiled_wm-panel -> overlay" report="test-tiled_wm-manager -> overlay"/>
|
|
<policy label="test-tiled_wm-manager -> content_request" report="test-tiled_wm-panel -> content_request"/>
|
|
<policy label="test-tiled_wm-manager -> overlay_request" report="test-tiled_wm-panel -> overlay_request"/>
|
|
</config>
|
|
</start>
|
|
<start name="wifi_reports">
|
|
<binary name="dynamic_rom"/>
|
|
<resource name="RAM" quantum="4M"/>
|
|
<provides> <service name="ROM"/> </provides>
|
|
<config verbose="no">
|
|
<rom name="accesspoints">
|
|
<inline>
|
|
<accesspoints>
|
|
<accesspoint ssid="skynet" bssid="00:01:02:03:04:05" quality="40"/>
|
|
<accesspoint ssid="foobar" bssid="01:02:03:04:05:06" quality="70" protection="WPA2"/>
|
|
<accesspoint ssid="foobar" bssid="01:02:03:04:05:07" quality="10" protection="WPA2"/>
|
|
</accesspoints>
|
|
</inline>
|
|
<sleep milliseconds="60000" />
|
|
<inline>
|
|
<accesspoints>
|
|
</accesspoints>
|
|
</inline>
|
|
<sleep milliseconds="60000" />
|
|
</rom>
|
|
<rom name="state">
|
|
<inline>
|
|
<state>
|
|
<accesspoint ssid="foobar" bssid="01:02:03:04:05:06" quality="70" freq="2418" state="disconnected"/>
|
|
</state>
|
|
</inline>
|
|
<sleep milliseconds="60000" />
|
|
<inline>
|
|
<state>
|
|
<accesspoint ssid="foobar" bssid="01:02:03:04:05:06" quality="70" freq="2418" state="connecting"/>
|
|
</state>
|
|
</inline>
|
|
<sleep milliseconds="60000" />
|
|
</rom>
|
|
</config>
|
|
</start>
|
|
|
|
<start name="test-tiled_wm-manager" caps="120">
|
|
<resource name="RAM" quantum="8M"/>
|
|
<route>
|
|
<service name="ROM" label="content_request"> <child name="test_reports" /> </service>
|
|
<service name="ROM" label="overlay_request"> <child name="test_reports" /> </service>
|
|
<service name="Report" label="layout_rules"> <child name="wm_report_rom" label="layout_rules"/> </service>
|
|
<service name="Report"> <child name="test_reports"/> </service>
|
|
<any-service> <parent /> <any-child/> </any-service>
|
|
</route>
|
|
</start>
|
|
<start name="test-tiled_wm-panel" caps="250">
|
|
<resource name="RAM" quantum="32M"/>
|
|
<config>
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
|
<vfs>
|
|
<dir name="dev">
|
|
<log/>
|
|
<inline name="rtc">2018-01-01 00:01</inline>
|
|
</dir>
|
|
<dir name="fs"> <ram/> </dir>
|
|
<tar name="qt5_dejavusans.tar"/>
|
|
</vfs>
|
|
</config>
|
|
<route>
|
|
<service name="Nitpicker"> <child name="wm"/> </service>
|
|
<service name="Report" label="shape"> <child name="wm"/> </service>
|
|
<service name="ROM" label="egl_drv.lib.so"> <parent label="egl_swrast.lib.so" /> </service>
|
|
|
|
<service name="ROM" label="apps"> <child name="test_reports" /> </service>
|
|
<service name="ROM" label="overlay"> <child name="test_reports" /> </service>
|
|
<service name="Report"> <child name="test_reports"/> </service>
|
|
<any-service> <parent /> <any-child/> </any-service>
|
|
</route>
|
|
</start>
|
|
<start name="test-tiled_wm-overlay" caps="250">
|
|
<resource name="RAM" quantum="32M"/>
|
|
<config>
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
|
<vfs>
|
|
<dir name="dev">
|
|
<log/>
|
|
<inline name="rtc">2018-01-01 00:01</inline>
|
|
</dir>
|
|
<dir name="fs"> <ram/> </dir>
|
|
<tar name="qt5_dejavusans.tar"/>
|
|
</vfs>
|
|
</config>
|
|
<route>
|
|
<service name="Nitpicker"> <child name="wm"/> </service>
|
|
<service name="Report" label="shape"> <child name="wm"/> </service>
|
|
<service name="ROM" label="egl_drv.lib.so"> <parent label="egl_swrast.lib.so" /> </service>
|
|
<any-service> <parent /> <any-child/> </any-service>
|
|
</route>
|
|
</start>
|
|
<start name="test-tiled_wm-app-1" caps="250">
|
|
<binary name="test-tiled_wm-app"/>
|
|
<resource name="RAM" quantum="32M"/>
|
|
<config name="app1">
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
|
<vfs>
|
|
<dir name="dev">
|
|
<log/>
|
|
<inline name="rtc">2018-01-01 00:01</inline>
|
|
</dir>
|
|
<dir name="fs"> <ram/> </dir>
|
|
<tar name="qt5_dejavusans.tar"/>
|
|
</vfs>
|
|
</config>
|
|
<route>
|
|
<service name="Nitpicker"> <child name="wm"/> </service>
|
|
<service name="Report" label="shape"> <child name="wm"/> </service>
|
|
<service name="ROM" label="egl_drv.lib.so"> <parent label="egl_swrast.lib.so" /> </service>
|
|
<any-service> <parent /> <any-child/> </any-service>
|
|
</route>
|
|
</start>
|
|
<start name="test-tiled_wm-app-2" caps="250">
|
|
<binary name="test-tiled_wm-app"/>
|
|
<resource name="RAM" quantum="32M"/>
|
|
<config name="app2">
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
|
<vfs>
|
|
<dir name="dev">
|
|
<log/>
|
|
<inline name="rtc">2018-01-01 00:01</inline>
|
|
</dir>
|
|
<dir name="fs"> <ram/> </dir>
|
|
<tar name="qt5_dejavusans.tar"/>
|
|
</vfs>
|
|
</config>
|
|
<route>
|
|
<service name="Nitpicker"> <child name="wm"/> </service>
|
|
<service name="Report" label="shape"> <child name="wm"/> </service>
|
|
<service name="ROM" label="egl_drv.lib.so"> <parent label="egl_swrast.lib.so" /> </service>
|
|
<any-service> <parent /> <any-child/> </any-service>
|
|
</route>
|
|
</start>
|
|
<start name="textedit" caps="250">
|
|
<resource name="RAM" quantum="70M"/>
|
|
<config>
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
|
<vfs>
|
|
<dir name="dev">
|
|
<log/>
|
|
<inline name="rtc">2018-01-01 00:01</inline>
|
|
</dir>
|
|
<dir name="fs"> <ram/> </dir>
|
|
<tar name="qt5_dejavusans.tar"/>
|
|
</vfs>
|
|
</config>
|
|
<route>
|
|
<service name="Nitpicker"> <child name="wm"/> </service>
|
|
<service name="Report" label="shape"> <child name="wm"/> </service>
|
|
<service name="ROM" label="egl_drv.lib.so"> <parent label="egl_swrast.lib.so" /> </service>
|
|
<any-service> <parent /> <any-child/> </any-service>
|
|
</route>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
install_config $config
|
|
|
|
append build_components [qt5_build_components feature]
|
|
|
|
# for debugging only
|
|
#append build_components { app/window_layouter app/themed_decorator }
|
|
|
|
build $build_components
|
|
|
|
append boot_modules [qt5_boot_modules feature]
|
|
|
|
# for debugging only
|
|
#append boot_modules { window_layouter themed_decorator }
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
run_genode_until forever
|
|
|
|
# vi: set ft=tcl :
|