2015-06-04 14:59:45 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
# for ldso debugging: <config ld_verbose="yes"/>
|
|
|
|
#
|
|
|
|
|
|
|
|
assert_spec linux
|
|
|
|
|
|
|
|
set build_components {
|
|
|
|
core init
|
|
|
|
drivers/timer
|
2015-09-30 09:30:02 +00:00
|
|
|
drivers/framebuffer
|
2015-06-04 14:59:45 +00:00
|
|
|
server/report_rom
|
|
|
|
server/dynamic_rom
|
|
|
|
server/nitpicker
|
2017-11-24 17:56:25 +00:00
|
|
|
app/pointer
|
|
|
|
test/pointer
|
2015-06-04 14:59:45 +00:00
|
|
|
test/nitpicker
|
|
|
|
}
|
|
|
|
|
|
|
|
build $build_components
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
|
|
|
set config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
|
2017-09-14 15:29:46 +00:00
|
|
|
<default caps="100"/>
|
|
|
|
|
2015-06-04 14:59:45 +00:00
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Timer"/> </provides>
|
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
2018-07-04 16:48:04 +00:00
|
|
|
<start name="fb_sdl" ld="no">
|
2015-06-04 14:59:45 +00:00
|
|
|
<resource name="RAM" quantum="6M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Framebuffer"/>
|
|
|
|
<service name="Input"/>
|
|
|
|
</provides>
|
|
|
|
<config buffered="yes" width="1280" height="720" depth="16"/>
|
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<alias name="input_drv" child="fb_sdl"/>
|
|
|
|
<alias name="fb_drv" child="fb_sdl"/>
|
|
|
|
|
|
|
|
<start name="report_rom_nitpicker">
|
|
|
|
<binary name="report_rom"/>
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Report"/> <service name="ROM"/> </provides>
|
|
|
|
<config>
|
2016-11-02 10:38:20 +00:00
|
|
|
<policy label="pointer -> hover" report="nitpicker -> hover"/>
|
2017-09-14 15:29:46 +00:00
|
|
|
<policy label="pointer -> xray" report="null"/>
|
2015-06-04 14:59:45 +00:00
|
|
|
</config>
|
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="nitpicker">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="Nitpicker"/></provides>
|
|
|
|
<config>
|
|
|
|
<report focus="yes" hover="yes" xray="yes"/>
|
2017-01-03 13:18:58 +00:00
|
|
|
<domain name="pointer" layer="1" content="client" label="no" origin="pointer"/>
|
|
|
|
<domain name="default" layer="3" content="client" label="yes" hover="always" focus="click"/>
|
2015-06-04 14:59:45 +00:00
|
|
|
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="pointer" domain="pointer"/>
|
|
|
|
<default-policy domain="default"/>
|
2015-06-04 14:59:45 +00:00
|
|
|
|
|
|
|
<background color="#00426f"/> <!-- indigo -->
|
|
|
|
</config>
|
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<service name="Framebuffer"> <child name="fb_drv"/> </service>
|
|
|
|
<service name="Input"> <child name="input_drv"/> </service>
|
|
|
|
<service name="Report"> <child name="report_rom_nitpicker"/> </service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="shape-arrow">
|
2017-11-24 17:56:25 +00:00
|
|
|
<binary name="test-pointer"/>
|
2015-06-04 14:59:45 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<config shape="arrow"/>
|
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="LOG"> <parent/> </service>
|
2017-11-28 17:40:27 +00:00
|
|
|
<service name="Report" label="shape">
|
2017-11-28 17:23:23 +00:00
|
|
|
<child name="pointer" label="test-label-arrow -> shape"/>
|
2017-11-28 17:40:27 +00:00
|
|
|
</service>
|
2015-06-04 14:59:45 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="shape-blade">
|
2017-11-24 17:56:25 +00:00
|
|
|
<binary name="test-pointer"/>
|
2015-06-04 14:59:45 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<config shape="blade"/>
|
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="LOG"> <parent/> </service>
|
2017-11-28 17:40:27 +00:00
|
|
|
<service name="Report" label="shape">
|
2017-11-28 17:23:23 +00:00
|
|
|
<child name="pointer" label="test-label-blade -> shape"/>
|
2017-11-28 17:40:27 +00:00
|
|
|
</service>
|
2015-06-04 14:59:45 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="shape-bladex">
|
2017-11-24 17:56:25 +00:00
|
|
|
<binary name="test-pointer"/>
|
2015-06-04 14:59:45 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<config shape="bladex"/>
|
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="LOG"> <parent/> </service>
|
2017-11-28 17:40:27 +00:00
|
|
|
<service name="Report" label="shape">
|
2017-11-28 17:23:23 +00:00
|
|
|
<child name="pointer" label="test-label-bladex -> shape"/>
|
2017-11-28 17:40:27 +00:00
|
|
|
</service>
|
2015-06-04 14:59:45 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="shape-smiley-config">
|
|
|
|
<binary name="dynamic_rom"/>
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="ROM"/> </provides>
|
|
|
|
<config>
|
|
|
|
<rom name="smiley.config">
|
2018-05-09 13:46:40 +00:00
|
|
|
<inline description="smiley"> <config shape="smiley"/> </inline>
|
|
|
|
<sleep milliseconds="800" />
|
|
|
|
<inline description="smiley"> <config shape="empty"/> </inline>
|
|
|
|
<sleep milliseconds="800" />
|
|
|
|
<inline description="yelims"> <config shape="yelims"/> </inline>
|
|
|
|
<sleep milliseconds="800" />
|
|
|
|
<inline description="yelims"> <config shape="invisible"/> </inline>
|
|
|
|
<sleep milliseconds="800" />
|
2015-06-04 14:59:45 +00:00
|
|
|
</rom>
|
|
|
|
</config>
|
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="shape-smiley">
|
2017-11-24 17:56:25 +00:00
|
|
|
<binary name="test-pointer"/>
|
2015-06-04 14:59:45 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<configfile name="smiley.config"/>
|
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM" label="smiley.config">
|
|
|
|
<child name="shape-smiley-config"/> </service>
|
2017-11-28 17:40:27 +00:00
|
|
|
<service name="Report" label="shape">
|
2017-11-28 17:23:23 +00:00
|
|
|
<child name="pointer" label="test-label-smiley -> shape"/>
|
2017-11-28 17:40:27 +00:00
|
|
|
</service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="pointer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
2017-11-28 17:40:27 +00:00
|
|
|
<provides> <service name="Report"/> </provides>
|
2017-11-24 18:53:30 +00:00
|
|
|
<config shapes="yes" verbose="no"/>
|
2015-06-04 14:59:45 +00:00
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="PD"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM" label="xray"> <child name="report_rom_nitpicker"/> </service>
|
|
|
|
<service name="ROM" label="hover"> <child name="report_rom_nitpicker"/> </service>
|
|
|
|
<service name="ROM"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="test-no-match">
|
|
|
|
<binary name="testnit"/>
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<route>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
|
|
|
</route>
|
|
|
|
</start>
|
2017-11-28 17:40:27 +00:00
|
|
|
<start name="test-label-smiley">
|
2015-06-04 14:59:45 +00:00
|
|
|
<binary name="testnit"/>
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<route>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="test-label-arrow">
|
|
|
|
<binary name="testnit"/>
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<route>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="test-label-blade">
|
|
|
|
<binary name="testnit"/>
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<route>
|
|
|
|
<service name="PD"> <parent/> </service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="LOG"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="CPU"> <parent/> </service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="test-label-bladex">
|
|
|
|
<binary name="testnit"/>
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<route>
|
|
|
|
<service name="PD"> <parent/> </service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="LOG"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="CPU"> <parent/> </service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"> <parent/> </service>
|
2015-06-04 14:59:45 +00:00
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
# generic modules
|
|
|
|
set boot_modules {
|
2016-12-01 18:00:11 +00:00
|
|
|
init ld.lib.so timer
|
2015-06-04 14:59:45 +00:00
|
|
|
fb_sdl
|
|
|
|
report_rom dynamic_rom
|
|
|
|
nitpicker
|
2017-11-24 17:56:25 +00:00
|
|
|
pointer
|
|
|
|
test-pointer
|
2015-06-04 14:59:45 +00:00
|
|
|
testnit
|
|
|
|
}
|
|
|
|
|
|
|
|
# "lsort -unique" removes duplicates but core must be first
|
|
|
|
build_boot_image "core [lsort -unique $boot_modules]"
|
|
|
|
|
|
|
|
run_genode_until forever
|
|
|
|
|
|
|
|
# vi: set ft=tcl :
|