2014-05-20 20:52:55 +00:00
|
|
|
source ${genode_dir}/repos/libports/run/qt5_common.inc
|
|
|
|
|
|
|
|
set feature(Nic) 1
|
|
|
|
|
2018-09-11 16:07:48 +00:00
|
|
|
import_from_depot [depot_user]/src/arora \
|
|
|
|
[depot_user]/src/icu \
|
|
|
|
[depot_user]/src/libcrypto \
|
|
|
|
[depot_user]/src/libssl \
|
|
|
|
[depot_user]/src/qt5_network \
|
|
|
|
[depot_user]/src/qt5_printsupport \
|
|
|
|
[depot_user]/src/qt5_qnitpickerviewwidget \
|
|
|
|
[depot_user]/src/qt5_opengl \
|
|
|
|
[depot_user]/src/qt5_qpluginwidget \
|
|
|
|
[depot_user]/src/qt5_scriptclassic \
|
|
|
|
[depot_user]/src/qt5_sql \
|
|
|
|
[depot_user]/src/qt5_ui_tools \
|
|
|
|
[depot_user]/src/qt5_webkit \
|
|
|
|
[depot_user]/src/qt5_widgets \
|
|
|
|
[depot_user]/src/vfs_jitterentropy \
|
|
|
|
[depot_user]/src/vfs_lxip
|
2018-04-24 10:40:22 +00:00
|
|
|
|
2012-05-16 11:42:10 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
2015-09-17 10:50:42 +00:00
|
|
|
append build_components [qt5_build_components feature]
|
2014-05-20 20:52:55 +00:00
|
|
|
|
|
|
|
append build_components {
|
2018-04-24 10:40:22 +00:00
|
|
|
server/clipboard
|
|
|
|
server/loader
|
|
|
|
server/tar_rom
|
|
|
|
server/nit_fb
|
|
|
|
app/launchpad
|
|
|
|
test/nitpicker
|
2012-05-16 11:42:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build $build_components
|
|
|
|
|
2013-01-16 11:52:48 +00:00
|
|
|
#
|
|
|
|
# Generate tar archives with plugin configurations
|
|
|
|
#
|
2014-05-07 09:48:19 +00:00
|
|
|
exec tar cf bin/nitpicker_plugin.tar -C [genode_dir]/repos/ports/src/app/arora/demo/nitpicker_plugin config.plugin
|
2013-01-16 11:52:48 +00:00
|
|
|
|
2012-05-16 11:42:10 +00:00
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
2015-09-17 10:50:42 +00:00
|
|
|
append config {
|
2012-05-16 11:42:10 +00:00
|
|
|
<config>
|
2014-05-20 20:52:55 +00:00
|
|
|
<parent-provides>}
|
|
|
|
append config [qt5_parent_provides feature]
|
|
|
|
append config {
|
2012-05-16 11:42:10 +00:00
|
|
|
</parent-provides>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2012-05-16 11:42:10 +00:00
|
|
|
<default-route>
|
2015-10-28 15:14:12 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
2012-05-16 11:42:10 +00:00
|
|
|
</default-route>}
|
|
|
|
|
2014-05-20 20:52:55 +00:00
|
|
|
append config [qt5_start_nodes feature]
|
2012-05-16 11:42:10 +00:00
|
|
|
|
|
|
|
append config {
|
2015-10-28 15:14:12 +00:00
|
|
|
|
|
|
|
<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>
|
2020-02-06 15:13:14 +00:00
|
|
|
<service name="ROM" label="focus"> <child name="wm_report_rom"/> </service>
|
2015-10-28 15:14:12 +00:00
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2014-04-14 09:57:22 +00:00
|
|
|
<start name="loader">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides><service name="Loader"/></provides>
|
2016-11-23 16:07:49 +00:00
|
|
|
<config>
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="arora">
|
2016-11-23 16:07:49 +00:00
|
|
|
<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>
|
2014-04-14 09:57:22 +00:00
|
|
|
</start>
|
2015-10-28 15:14:12 +00:00
|
|
|
|
2018-09-11 16:13:39 +00:00
|
|
|
<start name="vfs" caps="250">
|
|
|
|
<resource name="RAM" quantum="32M"/>
|
|
|
|
<provides> <service name="File_system"/> </provides>
|
|
|
|
<config>
|
|
|
|
<vfs>
|
|
|
|
<dir name="socket"> <lxip dhcp="yes"/> </dir>
|
|
|
|
</vfs>
|
|
|
|
<default-policy writeable="yes" root="/"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
|
2017-05-07 20:36:11 +00:00
|
|
|
<start name="arora" caps="2000">
|
2012-05-16 11:42:10 +00:00
|
|
|
<resource name="RAM" quantum="2G"/>
|
2015-10-28 15:14:12 +00:00
|
|
|
<config clipboard="yes">
|
2017-05-23 12:39:08 +00:00
|
|
|
<vfs>
|
|
|
|
<dir name="dev">
|
|
|
|
<log/>
|
|
|
|
<jitterentropy name="random"/>
|
2018-04-24 10:40:22 +00:00
|
|
|
<inline name="rtc">2018-01-01 00:01</inline>
|
|
|
|
</dir>
|
2018-09-11 16:13:39 +00:00
|
|
|
<fs/>
|
2018-04-24 10:40:22 +00:00
|
|
|
<tar name="qt5_dejavusans.tar"/>
|
2017-05-23 12:39:08 +00:00
|
|
|
</vfs>
|
2018-09-11 10:57:35 +00:00
|
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc" socket="/socket"/>
|
2014-04-14 09:57:22 +00:00
|
|
|
</config>
|
2015-10-28 15:14:12 +00:00
|
|
|
<route>
|
|
|
|
<service name="Nitpicker"> <child name="wm"/> </service>
|
2017-11-24 19:23:45 +00:00
|
|
|
<service name="Report" label="shape">
|
|
|
|
<child name="pointer" label="wm -> arora -> shape"/>
|
|
|
|
</service>
|
2015-10-28 15:14:12 +00:00
|
|
|
<service name="Report"> <child name="clipboard"/> </service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM" label="clipboard"> <child name="clipboard"/> </service>
|
2017-08-17 11:29:32 +00:00
|
|
|
<service name="ROM" label="egl_drv.lib.so"> <parent label="egl_swrast.lib.so" /> </service>
|
2015-10-28 15:14:12 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
2012-05-16 11:42:10 +00:00
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
2015-09-17 10:50:42 +00:00
|
|
|
append boot_modules [qt5_boot_modules feature]
|
2014-05-20 20:52:55 +00:00
|
|
|
|
|
|
|
append boot_modules {
|
2015-10-28 15:14:12 +00:00
|
|
|
clipboard
|
2013-01-16 11:52:48 +00:00
|
|
|
loader
|
|
|
|
tar_rom
|
|
|
|
nit_fb
|
|
|
|
launchpad
|
|
|
|
testnit
|
|
|
|
nitpicker_plugin.tar
|
2012-05-16 11:42:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
|
2019-02-11 14:34:30 +00:00
|
|
|
proc qemu_nic_model {} {
|
|
|
|
if [have_spec x86] { return e1000 }
|
|
|
|
if [have_spec lan9118] { return lan9118 }
|
|
|
|
if [have_spec cadence_gem] { return cadence_gem }
|
|
|
|
return nic_model_missing
|
|
|
|
}
|
2012-05-16 11:42:10 +00:00
|
|
|
|
2019-02-11 14:34:30 +00:00
|
|
|
append qemu_args " -netdev user,id=net0 "
|
|
|
|
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
|
2012-05-16 11:42:10 +00:00
|
|
|
|
|
|
|
run_genode_until forever
|