genode/repos/ports/run/arora.run
Norman Feske 5a1cef6381 Make label prefixing more strict
This patch unconditionally applies the labeling of sessions and thereby
removes the most common use case of 'Child_policy::filter_session_args'.
Furthermore, the patch removes an ambiguity of the session labels of
sessions created by the parent of behalf of its child, e.g., the PD
session created as part of 'Child' now has the label "<child-name>"
whereas an unlabeled PD-session request originating from the child
has the label "<child-name> -> ". This way, the routing-policy of
'Child_policy::resolve_session_request' can differentiate both cases.

As a consequence, the stricter labeling must now be considered wherever
a precise label was specified as a key for a session route or a server-
side policy selection. The simplest way to adapt those cases is to use a
'label_prefix' instead of the 'label' attribute. Alternatively, the
'label' attribute may used by appending " -> " (note the whitespace).

Fixes #2171
2016-11-30 13:37:07 +01:00

168 lines
3.4 KiB
Plaintext

source ${genode_dir}/repos/libports/run/qt5_common.inc
set feature(Nic) 1
#
# Build
#
append build_components [qt5_build_components feature]
append build_components {
server/clipboard server/loader server/tar_rom server/nit_fb app/launchpad test/nitpicker
app/arora
}
build $build_components
create_boot_directory
#
# Create Qt tar archive
#
create_qt5_fs_tar_archive "arora" "gui"
#
# Generate tar archives with plugin configurations
#
exec tar cf bin/nitpicker_plugin.tar -C [genode_dir]/repos/ports/src/app/arora/demo/nitpicker_plugin config.plugin
#
# Generate config
#
append config {
<config>
<parent-provides>}
append config [qt5_parent_provides feature]
append config {
</parent-provides>
<default-route>
<any-service> <parent/> <any-child/> </any-service>
</default-route>}
append config [qt5_start_nodes feature]
append config {
<start name="clipboard">
<resource name="RAM" quantum="4M"/>
<provides>
<service name="ROM"/>
<service name="Report"/>
</provides>
<config>
<policy label="arora -> clipboard" domain="default" />
</config>
<route>
<service name="ROM"> <child name="report_rom"/> </service>
<any-service> <parent/> </any-service>
</route>
</start>
<start name="loader">
<resource name="RAM" quantum="2M"/>
<provides><service name="Loader"/></provides>
<config>
<policy label_prefix="arora">
<parent-rom name="ld.lib.so"/>
<parent-rom name="init"/>
<parent-rom name="tar_rom"/>
<parent-rom name="nit_fb"/>
<parent-rom name="nitpicker"/>
<parent-rom name="pointer"/>
<parent-rom name="launchpad"/>
<parent-rom name="testnit"/>
</policy>
</config>
<route>
<service name="Nitpicker"> <child name="wm"/> </service>
<any-service> <parent/> <any-child/> </any-service>
</route>
</start>
<start name="arora">
<resource name="RAM" quantum="2G"/>
<config clipboard="yes">
<libc stdout="/dev/log" stderr="/dev/log">
<vfs>
<dir name="dev"> <log/> </dir>
<tar name="qt5_fs_arora.tar"/>
</vfs>
</libc>
</config>
<route>
<service name="Nitpicker"> <child name="wm"/> </service>
<service name="Report"> <child name="clipboard"/> </service>
<service name="ROM">
<if-arg key="label" value="clipboard"/> <child name="clipboard"/>
</service>
<any-service> <parent/> <any-child/> </any-service>
</route>
</start>
</config>}
install_config $config
#
# Boot modules
#
append boot_modules [qt5_boot_modules feature]
append boot_modules {
clipboard
loader
tar_rom
nit_fb
launchpad
testnit
arora
ld.lib.so
libc.lib.so libm.lib.so lwip.lib.so
zlib.lib.so libpng.lib.so jpeg.lib.so libssl.lib.so libcrypto.lib.so
freetype.lib.so
libc_pipe.lib.so
stdcxx.lib.so
nitpicker_plugin.tar
}
#
# Qt5-specific boot modules
#
append boot_modules {
gallium.lib.so
icu.lib.so
pthread.lib.so
qt5_core.lib.so
qt5_gui.lib.so
qt5_jscore.lib.so
qt5_network.lib.so
qt5_qnitpickerviewwidget.lib.so
qt5_qpluginwidget.lib.so
qt5_ui_tools.lib.so
qt5_webcore.lib.so
qt5_webkit.lib.so
qt5_xml.lib.so
qt5_printsupport.lib.so
qt5_scriptclassic.lib.so
qt5_sql.lib.so
qt5_webkitwidgets.lib.so
qt5_widgets.lib.so
qt5_wtf.lib.so
qt5_fs_arora.tar
}
build_boot_image $boot_modules
append qemu_args " -m 512 "
append_if [have_spec x86] qemu_args " -net nic,model=e1000 "
append_if [have_spec lan9118] qemu_args " -net nic,model=lan9118 "
append qemu_args " -net user "
run_genode_until forever