2015-09-09 14:21:19 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
|
|
|
set build_components {
|
2019-01-03 17:01:49 +00:00
|
|
|
core init timer
|
2015-09-09 14:21:19 +00:00
|
|
|
drivers/framebuffer/intel
|
2015-09-18 14:34:19 +00:00
|
|
|
test/framebuffer
|
|
|
|
server/report_rom
|
2020-04-20 12:00:57 +00:00
|
|
|
server/vfs
|
2016-03-22 10:04:07 +00:00
|
|
|
server/fs_rom
|
2018-04-09 21:33:34 +00:00
|
|
|
app/top
|
2020-04-20 12:00:57 +00:00
|
|
|
lib/vfs/import
|
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 {
|
2018-04-09 21:33:34 +00:00
|
|
|
<config verbose="yes" prio_levels="4">
|
2015-09-09 14:21:19 +00:00
|
|
|
<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"/>
|
2018-04-09 21:33:34 +00:00
|
|
|
<service name="TRACE"/>
|
2015-09-09 14:21:19 +00:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
2017-05-07 20:36:11 +00:00
|
|
|
</default-route>
|
|
|
|
<default caps="100"/>}
|
2015-09-09 14:21:19 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2018-04-09 21:33:34 +00:00
|
|
|
<start name="report_rom" priority="0">
|
2015-09-18 14:34:19 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides> <service name="Report" /> <service name="ROM" /> </provides>
|
2018-04-09 21:33:34 +00:00
|
|
|
<config verbose="yes"/>
|
2016-04-19 13:37:27 +00:00
|
|
|
</start>
|
|
|
|
|
2018-04-09 21:33:34 +00:00
|
|
|
<start name="init_dynamic" caps="10000">
|
|
|
|
<binary name="init"/>
|
|
|
|
<resource name="RAM" quantum="1000M"/>
|
2015-09-18 14:34:19 +00:00
|
|
|
<route>
|
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
2018-04-09 21:33:34 +00:00
|
|
|
<service name="Platform"> <child name="platform_drv" label="intel_fb_drv"/> </service>
|
2016-04-19 13:37:27 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
2018-04-09 21:33:34 +00:00
|
|
|
<config prio_levels="2">
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="TRACE"/>
|
|
|
|
<service name="Platform"/>
|
|
|
|
<service name="Timer"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
|
|
|
<default caps="100"/>
|
|
|
|
<report init_ram="yes" child_ram="yes" delay_ms="10000"/>
|
|
|
|
|
|
|
|
<start name="top">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<config period_ms="40000"/>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="report_rom" priority="-1">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides> <service name="Report" /> <service name="ROM" /> </provides>
|
|
|
|
<config verbose="yes">
|
|
|
|
<policy label="intel_fb_controller -> connectors" report="intel_fb_drv -> connectors"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="config_fs" priority="-1">
|
2020-04-20 12:00:57 +00:00
|
|
|
<binary name="vfs"/>
|
2018-04-09 21:33:34 +00:00
|
|
|
<resource name="RAM" quantum="8M"/>
|
|
|
|
<provides> <service name="File_system"/> </provides>
|
|
|
|
<config>
|
2020-04-20 12:00:57 +00:00
|
|
|
<vfs>
|
|
|
|
<ram/>
|
|
|
|
<import>
|
|
|
|
<inline name="fb_drv.config">
|
2018-04-09 21:33:34 +00:00
|
|
|
<config ld_verbose="yes">
|
|
|
|
<report connectors="yes"/>
|
|
|
|
</config>
|
2020-04-20 12:00:57 +00:00
|
|
|
</inline>
|
|
|
|
</import>
|
|
|
|
</vfs>
|
2018-04-09 21:33:34 +00:00
|
|
|
<policy label_prefix="config_rom" root="/"/>
|
|
|
|
<policy label_prefix="intel_fb_controller" root="/" writeable="yes"/>
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<start name="intel_fb_drv" caps="1000">
|
2022-03-15 07:04:49 +00:00
|
|
|
<binary name="legacy_intel_fb_drv"/>
|
2018-04-09 21:33:34 +00:00
|
|
|
<resource name="RAM" quantum="60M"/>
|
|
|
|
<route>
|
2020-05-08 14:21:20 +00:00
|
|
|
<service name="ROM" label="config">
|
|
|
|
<child name="config_rom" label="fb_drv.config"/> </service>
|
2018-04-09 21:33:34 +00:00
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child /> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="intel_fb_controller" priority="-1">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
2022-01-27 14:47:44 +00:00
|
|
|
<config artifical_update_ms="0"> <!-- off -->
|
|
|
|
<vfs> <fs/> </vfs>
|
|
|
|
</config>
|
2018-04-09 21:33:34 +00:00
|
|
|
<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>
|
|
|
|
|
|
|
|
<start name="test-framebuffer" priority="-1">
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
2020-07-01 20:26:11 +00:00
|
|
|
<provides> <service name="Capture"/> </provides>
|
|
|
|
<config/>
|
2018-04-09 21:33:34 +00:00
|
|
|
</start>
|
|
|
|
</config>
|
2015-09-09 14:21:19 +00:00
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
# generic modules
|
|
|
|
set boot_modules {
|
2022-03-15 07:04:49 +00:00
|
|
|
core ld.lib.so init timer legacy_intel_fb_drv intel_fb_controller
|
2020-04-20 12:00:57 +00:00
|
|
|
test-framebuffer report_rom fs_rom vfs vfs.lib.so vfs_import.lib.so
|
2018-04-09 21:33:34 +00:00
|
|
|
top
|
2015-09-09 14:21:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
append_platform_drv_boot_modules
|
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
run_genode_until forever
|