mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 15:56:41 +00:00
db89c85954
- fix compile errors when building for ARM - use the correct device drivers in Qt run scripts Fixes #1154.
137 lines
2.5 KiB
Plaintext
137 lines
2.5 KiB
Plaintext
source ${genode_dir}/repos/libports/run/qt5_common.inc
|
|
|
|
set feature(Nic) 1
|
|
|
|
#
|
|
# Build
|
|
#
|
|
|
|
set build_components [qt5_build_components feature]
|
|
|
|
append build_components {
|
|
server/loader server/tar_rom server/nit_fb app/launchpad test/nitpicker
|
|
app/arora
|
|
}
|
|
|
|
build $build_components
|
|
|
|
create_boot_directory
|
|
|
|
#
|
|
# 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
|
|
#
|
|
|
|
set 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="loader">
|
|
<resource name="RAM" quantum="2M"/>
|
|
<provides><service name="Loader"/></provides>
|
|
</start>
|
|
<start name="arora">
|
|
<resource name="RAM" quantum="2G"/>
|
|
<config>
|
|
<libc stdout="/dev/log" stderr="/dev/log">
|
|
<vfs> <dir name="dev"> <log/> </dir> </vfs>
|
|
</libc>
|
|
</config>
|
|
</start>
|
|
</config>}
|
|
|
|
install_config $config
|
|
|
|
#
|
|
# Boot modules
|
|
#
|
|
|
|
set boot_modules [qt5_boot_modules feature]
|
|
|
|
append boot_modules {
|
|
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_lock_pipe.lib.so
|
|
stdcxx.lib.so
|
|
nitpicker_plugin.tar
|
|
}
|
|
|
|
if {[have_spec qt4_deprecated]} {
|
|
#
|
|
# Qt4-specific boot modules
|
|
#
|
|
append boot_modules {
|
|
dejavusans.lib.so
|
|
qt_core.lib.so
|
|
qt_gui.lib.so
|
|
qt_jscore.lib.so
|
|
qt_network.lib.so
|
|
qt_script.lib.so
|
|
qt_ui_tools.lib.so
|
|
qt_webcore.lib.so
|
|
qt_webkit.lib.so
|
|
qt_xml.lib.so
|
|
qnitpickerviewwidget.lib.so
|
|
qpluginwidget.lib.so
|
|
}
|
|
} else {
|
|
#
|
|
# Qt5-specific boot modules
|
|
#
|
|
append boot_modules {
|
|
gallium.lib.so
|
|
icu.lib.so
|
|
pthread.lib.so
|
|
qt5_core.lib.so
|
|
qt5_dejavusans.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
|
|
}
|
|
}
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
append qemu_args " -m 512 "
|
|
|
|
append_if [have_spec x86] qemu_args " -net nic,model=pcnet "
|
|
append_if [have_spec lan9118] qemu_args " -net nic,model=lan9118 "
|
|
|
|
append qemu_args " -net user "
|
|
|
|
run_genode_until forever
|
|
|