2014-05-20 20:52:55 +00:00
|
|
|
source ${genode_dir}/repos/libports/run/qt5_common.inc
|
|
|
|
|
|
|
|
set feature(Nic) 1
|
|
|
|
|
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 {
|
2015-10-28 15:14:12 +00:00
|
|
|
server/clipboard server/loader server/tar_rom server/nit_fb app/launchpad test/nitpicker
|
2017-08-17 11:29:32 +00:00
|
|
|
lib/mesa/swrast
|
2017-05-22 12:50:09 +00:00
|
|
|
lib/vfs/jitterentropy
|
2012-05-16 11:42:10 +00:00
|
|
|
app/arora
|
|
|
|
}
|
|
|
|
|
|
|
|
build $build_components
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
2014-08-12 16:08:06 +00:00
|
|
|
#
|
|
|
|
# Create Qt tar archive
|
|
|
|
#
|
|
|
|
|
|
|
|
create_qt5_fs_tar_archive "arora" "gui"
|
|
|
|
|
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>
|
2017-05-17 15:37:43 +00:00
|
|
|
<service name="ROM" label="focus"> <child name="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
|
|
|
|
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"/>
|
|
|
|
</dir>
|
|
|
|
<tar name="qt5_fs_arora.tar"/>
|
|
|
|
</vfs>
|
|
|
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
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>
|
|
|
|
<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
|
2012-05-16 11:42:10 +00:00
|
|
|
arora
|
|
|
|
ld.lib.so
|
2017-05-22 14:55:30 +00:00
|
|
|
libc.lib.so libm.lib.so lwip.lib.so
|
2013-05-02 15:59:56 +00:00
|
|
|
zlib.lib.so libpng.lib.so jpeg.lib.so libssl.lib.so libcrypto.lib.so
|
2012-05-16 11:42:10 +00:00
|
|
|
freetype.lib.so
|
2016-03-06 14:21:23 +00:00
|
|
|
libc_pipe.lib.so
|
2012-11-01 21:09:40 +00:00
|
|
|
stdcxx.lib.so
|
2017-05-22 12:50:09 +00:00
|
|
|
vfs_jitterentropy.lib.so
|
2013-01-16 11:52:48 +00:00
|
|
|
nitpicker_plugin.tar
|
2012-05-16 11:42:10 +00:00
|
|
|
}
|
|
|
|
|
2015-03-16 14:37:47 +00:00
|
|
|
#
|
|
|
|
# Qt5-specific boot modules
|
|
|
|
#
|
|
|
|
append boot_modules {
|
2017-08-17 11:29:32 +00:00
|
|
|
egl.lib.so
|
|
|
|
egl_swrast.lib.so
|
|
|
|
expat.lib.so
|
|
|
|
glapi.lib.so
|
2015-03-16 14:37:47 +00:00
|
|
|
icu.lib.so
|
2017-08-17 11:29:32 +00:00
|
|
|
mesa.lib.so
|
2017-05-22 12:50:09 +00:00
|
|
|
pcre16.lib.so
|
2015-03-16 14:37:47 +00:00
|
|
|
pthread.lib.so
|
2017-05-22 12:50:09 +00:00
|
|
|
qt5_angle.lib.so
|
2015-03-16 14:37:47 +00:00
|
|
|
qt5_core.lib.so
|
|
|
|
qt5_gui.lib.so
|
|
|
|
qt5_jscore.lib.so
|
|
|
|
qt5_network.lib.so
|
2017-05-22 12:50:09 +00:00
|
|
|
qt5_opengl.lib.so
|
2015-03-16 14:37:47 +00:00
|
|
|
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
|
2013-08-09 13:04:52 +00:00
|
|
|
}
|
2012-05-16 11:42:10 +00:00
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
|
2016-06-22 13:05:57 +00:00
|
|
|
append_if [have_spec x86] qemu_args " -net nic,model=e1000 "
|
2012-05-16 11:42:10 +00:00
|
|
|
append_if [have_spec lan9118] qemu_args " -net nic,model=lan9118 "
|
|
|
|
|
|
|
|
append qemu_args " -net user "
|
|
|
|
|
|
|
|
run_genode_until forever
|
2014-05-20 20:52:55 +00:00
|
|
|
|