2015-09-09 14:21:19 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
|
|
|
set build_components {
|
|
|
|
core init
|
|
|
|
drivers/timer
|
|
|
|
drivers/framebuffer/intel
|
2015-09-18 14:34:19 +00:00
|
|
|
test/framebuffer
|
|
|
|
server/report_rom
|
2016-03-22 10:04:07 +00:00
|
|
|
server/ram_fs
|
|
|
|
server/fs_rom
|
2015-09-09 14:21:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
source ${genode_dir}/repos/base/run/platform_drv.inc
|
|
|
|
append_platform_drv_build_components
|
|
|
|
|
|
|
|
build $build_components
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
|
|
|
append config {
|
2016-03-22 10:04:07 +00:00
|
|
|
<config verbose="yes" prio_levels="2">
|
2015-09-09 14:21:19 +00:00
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="RAM"/>
|
|
|
|
<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>
|
|
|
|
</default-route>}
|
|
|
|
|
|
|
|
append_platform_drv_config
|
|
|
|
|
|
|
|
append config {
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
2016-03-22 10:04:07 +00:00
|
|
|
|
|
|
|
<start name="report_rom" priority="-1">
|
2015-09-18 14:34:19 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides> <service name="Report" /> <service name="ROM" /> </provides>
|
2016-04-19 13:37:27 +00:00
|
|
|
<config verbose="yes">
|
|
|
|
<policy label="intel_fb_controller -> connectors" report="intel_fb_drv -> connectors"/>
|
|
|
|
</config>
|
2015-09-18 14:34:19 +00:00
|
|
|
</start>
|
2016-04-19 13:37:27 +00:00
|
|
|
|
|
|
|
<start name="config_fs" priority="-1">
|
|
|
|
<binary name="ram_fs"/>
|
|
|
|
<resource name="RAM" quantum="8M"/>
|
|
|
|
<provides> <service name="File_system"/> </provides>
|
|
|
|
<config>
|
|
|
|
<content>
|
|
|
|
<inline name="fb_drv.config">
|
2016-06-16 12:41:40 +00:00
|
|
|
<config>
|
2016-04-19 13:37:27 +00:00
|
|
|
<report connectors="yes"/>
|
|
|
|
</config>
|
|
|
|
</inline>
|
|
|
|
</content>
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="config_rom" root="/"/>
|
|
|
|
<policy label_prefix="intel_fb_controller" root="/" writeable="yes"/>
|
2016-04-19 13:37:27 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="config_rom" priority="-1">
|
|
|
|
<binary name="fs_rom"/>
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="ROM"/></provides>
|
|
|
|
<route>
|
|
|
|
<service name="File_system"> <child name="config_fs" /> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2015-09-09 14:21:19 +00:00
|
|
|
<start name="intel_fb_drv">
|
2015-09-18 14:34:19 +00:00
|
|
|
<resource name="RAM" quantum="20M"/>
|
|
|
|
<provides><service name="Framebuffer"/></provides>
|
2016-03-22 10:04:07 +00:00
|
|
|
<configfile name="fb_drv.config"/>
|
2015-09-18 14:34:19 +00:00
|
|
|
<route>
|
2016-03-22 10:04:07 +00:00
|
|
|
<service name="ROM" label="fb_drv.config"> <child name="config_rom"/> </service>
|
2015-09-18 14:34:19 +00:00
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child /> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
2016-04-19 13:37:27 +00:00
|
|
|
|
2016-03-22 10:04:07 +00:00
|
|
|
<start name="intel_fb_controller" priority="-1">
|
2016-04-19 13:37:27 +00:00
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<route>
|
|
|
|
<service name="File_system"> <child name="config_fs"/> </service>
|
|
|
|
<service name="ROM" label="connectors"> <child name="report_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2016-03-22 10:04:07 +00:00
|
|
|
<start name="test-framebuffer" priority="-1">
|
2015-09-09 14:21:19 +00:00
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
# generic modules
|
|
|
|
set boot_modules {
|
2016-12-01 18:00:11 +00:00
|
|
|
core ld.lib.so init timer intel_fb_drv intel_fb_controller
|
2016-04-19 13:37:27 +00:00
|
|
|
test-framebuffer report_rom ram_fs fs_rom
|
2015-09-09 14:21:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
append_platform_drv_boot_modules
|
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
run_genode_until forever
|