2012-04-17 16:46:14 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
|
|
|
set build_components {
|
2019-01-03 17:01:49 +00:00
|
|
|
core init timer
|
2012-04-17 16:46:14 +00:00
|
|
|
server/nitpicker server/loader
|
|
|
|
test/nitpicker test/loader
|
2015-06-08 07:05:32 +00:00
|
|
|
drivers/framebuffer drivers/input
|
2012-04-17 16:46:14 +00:00
|
|
|
}
|
|
|
|
|
2015-06-08 07:05:32 +00:00
|
|
|
source ${genode_dir}/repos/base/run/platform_drv.inc
|
|
|
|
append_platform_drv_build_components
|
|
|
|
|
2012-04-17 16:46:14 +00:00
|
|
|
build $build_components
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
|
|
|
append config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
2017-05-07 20:36:11 +00:00
|
|
|
</default-route>
|
|
|
|
<default caps="100"/>}
|
2012-04-17 16:46:14 +00:00
|
|
|
|
2015-06-08 07:05:32 +00:00
|
|
|
append_platform_drv_config
|
|
|
|
|
2012-04-17 16:46:14 +00:00
|
|
|
append_if [have_spec sdl] config {
|
2018-07-04 16:48:04 +00:00
|
|
|
<start name="fb_sdl" ld="no">
|
2012-04-17 16:46:14 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Input"/>
|
|
|
|
<service name="Framebuffer"/>
|
|
|
|
</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-04-17 16:46:14 +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="nitpicker">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Nitpicker"/></provides>
|
2014-07-18 14:12:19 +00:00
|
|
|
<config>
|
2016-03-09 14:32:23 +00:00
|
|
|
<domain name="" layer="2" /> <default-policy domain=""/>
|
2014-07-18 14:12:19 +00:00
|
|
|
</config>
|
2012-04-17 16:46:14 +00:00
|
|
|
</start>
|
|
|
|
<start name="loader">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Loader"/></provides>
|
2016-11-06 13:27:26 +00:00
|
|
|
<config>
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="test-loader">
|
2016-11-06 13:27:26 +00:00
|
|
|
<parent-rom name="testnit"/>
|
2016-12-01 18:00:11 +00:00
|
|
|
<parent-rom name="ld.lib.so"/>
|
2016-11-06 13:27:26 +00:00
|
|
|
</policy>
|
|
|
|
</config>
|
2012-04-17 16:46:14 +00:00
|
|
|
</start>
|
2017-05-07 20:36:11 +00:00
|
|
|
<start name="test-loader" caps="200">
|
2012-04-17 16:46:14 +00:00
|
|
|
<resource name="RAM" quantum="1G"/>
|
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
# generic modules
|
2016-12-01 18:00:11 +00:00
|
|
|
set boot_modules { core ld.lib.so init timer nitpicker testnit loader test-loader }
|
2012-04-17 16:46:14 +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 framebuffer] boot_modules fb_drv
|
|
|
|
lappend_if [have_spec ps2] boot_modules ps2_drv
|
2012-04-17 16:46:14 +00:00
|
|
|
|
2015-06-08 07:05:32 +00:00
|
|
|
append_platform_drv_boot_modules
|
|
|
|
|
2012-04-17 16:46:14 +00:00
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
|
|
|
|
run_genode_until forever
|