2012-05-16 11:42:10 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
|
|
|
set build_components {
|
|
|
|
core init
|
|
|
|
drivers/timer drivers/framebuffer drivers/pci drivers/input drivers/nic
|
|
|
|
server/nitpicker
|
2013-01-16 11:52:48 +00:00
|
|
|
server/loader server/tar_rom server/nit_fb app/launchpad test/nitpicker
|
2012-05-16 11:42:10 +00:00
|
|
|
app/arora
|
|
|
|
}
|
|
|
|
|
|
|
|
build $build_components
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
2013-01-16 11:52:48 +00:00
|
|
|
#
|
|
|
|
# Generate tar archives with plugin configurations
|
|
|
|
#
|
|
|
|
exec tar cf bin/nitpicker_plugin.tar -C [genode_dir]/ports/src/app/arora/demo/nitpicker_plugin config.plugin
|
|
|
|
|
2012-05-16 11:42:10 +00:00
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
|
|
|
append config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="RAM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="CAP"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="SIGNAL"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>}
|
|
|
|
|
|
|
|
append_if [have_spec sdl] config {
|
|
|
|
<start name="fb_sdl">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Input"/>
|
|
|
|
<service name="Framebuffer"/>
|
|
|
|
</provides>
|
|
|
|
</start>}
|
|
|
|
|
|
|
|
append_if [have_spec pci] config {
|
|
|
|
<start name="pci_drv">
|
2013-05-02 15:59:56 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
2012-05-16 11:42:10 +00:00
|
|
|
<provides><service name="PCI"/></provides>
|
|
|
|
</start>}
|
|
|
|
|
2013-04-29 08:51:27 +00:00
|
|
|
append_if [have_spec framebuffer] config {
|
|
|
|
<start name="fb_drv">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
2012-05-16 11:42:10 +00:00
|
|
|
<provides><service name="Framebuffer"/></provides>
|
|
|
|
</start>}
|
|
|
|
|
|
|
|
append_if [have_spec ps2] config {
|
|
|
|
<start name="ps2_drv">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Input"/></provides>
|
|
|
|
</start> }
|
|
|
|
|
|
|
|
append config {
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
|
|
|
<start name="nic_drv">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides><service name="Nic"/></provides>
|
|
|
|
</start>
|
|
|
|
<start name="nitpicker">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Nitpicker"/></provides>
|
|
|
|
</start>
|
2013-01-16 11:52:48 +00:00
|
|
|
<start name="loader">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides><service name="Loader"/></provides>
|
|
|
|
</start>
|
2012-05-16 11:42:10 +00:00
|
|
|
<start name="arora">
|
|
|
|
<resource name="RAM" quantum="2G"/>
|
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
# generic modules
|
|
|
|
set boot_modules {
|
|
|
|
core init
|
|
|
|
timer nic_drv
|
|
|
|
nitpicker
|
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
|
2013-05-02 15:59:56 +00:00
|
|
|
libc.lib.so libm.lib.so lwip.lib.so libc_log.lib.so
|
|
|
|
zlib.lib.so libpng.lib.so jpeg.lib.so libssl.lib.so libcrypto.lib.so
|
2012-05-16 11:42:10 +00:00
|
|
|
dejavusans.lib.so
|
|
|
|
freetype.lib.so
|
|
|
|
libc_lock_pipe.lib.so
|
2012-11-01 21:09:40 +00:00
|
|
|
stdcxx.lib.so
|
2012-05-16 11:42:10 +00:00
|
|
|
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
|
2013-05-02 15:59:56 +00:00
|
|
|
qt_webkit.lib.so
|
2012-05-16 11:42:10 +00:00
|
|
|
qt_xml.lib.so
|
|
|
|
qnitpickerviewwidget.lib.so
|
|
|
|
qpluginwidget.lib.so
|
2013-01-16 11:52:48 +00:00
|
|
|
nitpicker_plugin.tar
|
2012-05-16 11:42:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# platform-specific modules
|
2013-04-29 08:51:27 +00:00
|
|
|
lappend_if [have_spec linux] boot_modules fb_sdl
|
|
|
|
lappend_if [have_spec pci] boot_modules pci_drv
|
|
|
|
lappend_if [have_spec framebuffer] boot_modules fb_drv
|
|
|
|
lappend_if [have_spec ps2] boot_modules ps2_drv
|
2012-05-16 11:42:10 +00:00
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
append qemu_args " -m 256 "
|
|
|
|
|
|
|
|
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
|