2015-03-30 09:37:08 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
2015-05-26 18:12:17 +00:00
|
|
|
assert_spec x86
|
|
|
|
|
2015-03-30 09:37:08 +00:00
|
|
|
set build_components {
|
|
|
|
core init
|
|
|
|
drivers/input
|
|
|
|
drivers/timer
|
|
|
|
test/input
|
|
|
|
}
|
|
|
|
|
2015-05-28 11:43:13 +00:00
|
|
|
source ${genode_dir}/repos/base/run/platform_drv.inc
|
|
|
|
append_platform_drv_build_components
|
|
|
|
|
2015-03-30 09:37:08 +00:00
|
|
|
build $build_components
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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/>
|
|
|
|
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
<route>
|
|
|
|
<service name="CAP"> <parent/> </service>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="RM"> <parent/> </service>
|
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="SIGNAL"> <parent/> </service>
|
2015-05-26 18:12:17 +00:00
|
|
|
<service name="IO_MEM"> <parent/> </service>
|
|
|
|
<service name="IRQ"> <parent/> </service>
|
|
|
|
<service name="IO_PORT"> <parent/> </service>
|
2015-03-30 09:37:08 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="ps2_drv">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Input"/></provides>
|
|
|
|
<route>
|
|
|
|
<service name="CAP"> <parent/> </service>
|
|
|
|
<service name="IO_PORT"> <parent/> </service>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="RM"> <parent/> </service>
|
|
|
|
<service name="SIGNAL"> <parent/> </service>
|
2015-05-26 18:12:17 +00:00
|
|
|
<service name="IO_MEM"> <parent/> </service>
|
|
|
|
<service name="IRQ"> <parent/> </service>
|
2015-05-28 11:43:13 +00:00
|
|
|
<service name="PCI"> <any-child/> </service>
|
2015-03-30 09:37:08 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="test-input">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<route>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="RM"> <parent/> </service>
|
|
|
|
<service name="SIGNAL"> <parent/> </service>
|
|
|
|
|
|
|
|
<service name="Input"> <child name="ps2_drv"/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
</route>
|
2015-05-28 11:43:13 +00:00
|
|
|
</start>}
|
|
|
|
|
|
|
|
append_platform_drv_config
|
2015-03-30 09:37:08 +00:00
|
|
|
|
2015-05-28 11:43:13 +00:00
|
|
|
append config {
|
2015-03-30 09:37:08 +00:00
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
# generic modules
|
|
|
|
set boot_modules {
|
|
|
|
core init
|
|
|
|
timer
|
|
|
|
ps2_drv
|
|
|
|
test-input
|
|
|
|
}
|
|
|
|
|
2015-05-26 18:12:17 +00:00
|
|
|
# platform-specific modules
|
2015-05-28 11:43:13 +00:00
|
|
|
append_platform_drv_boot_modules
|
2015-03-30 09:37:08 +00:00
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
append qemu_args " -m 256 "
|
|
|
|
|
|
|
|
run_genode_until forever
|