2011-12-22 15:19:25 +00:00
|
|
|
create_boot_directory
|
|
|
|
|
2019-02-19 13:24:52 +00:00
|
|
|
import_from_depot [depot_user]/src/[base_src] \
|
|
|
|
[depot_user]/pkg/[drivers_interactive_pkg] \
|
|
|
|
[depot_user]/pkg/terminal \
|
2019-06-25 13:02:57 +00:00
|
|
|
[depot_user]/pkg/motif_wm \
|
2019-02-19 13:24:52 +00:00
|
|
|
[depot_user]/src/init \
|
2019-06-25 13:02:57 +00:00
|
|
|
[depot_user]/src/nitpicker \
|
|
|
|
[depot_user]/src/report_rom \
|
2019-02-19 13:24:52 +00:00
|
|
|
[depot_user]/src/libc \
|
2020-03-17 13:31:06 +00:00
|
|
|
[depot_user]/src/vfs \
|
|
|
|
[depot_user]/src/fs_rom \
|
2019-02-19 13:24:52 +00:00
|
|
|
[depot_user]/src/posix \
|
|
|
|
[depot_user]/src/ncurses \
|
2019-06-25 13:02:57 +00:00
|
|
|
[depot_user]/src/clipboard \
|
2019-02-19 13:24:52 +00:00
|
|
|
[depot_user]/src/vim
|
2017-09-06 17:15:36 +00:00
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config verbose="yes">
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
</parent-provides>
|
|
|
|
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
|
|
|
|
|
|
|
<default caps="100"/>
|
|
|
|
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
|
|
|
|
2020-07-10 11:04:12 +00:00
|
|
|
<start name="drivers" caps="1500" managing_system="yes">
|
|
|
|
<resource name="RAM" quantum="64M"/>
|
2017-09-06 17:15:36 +00:00
|
|
|
<binary name="init"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="config"> <parent label="drivers.config"/> </service>
|
2020-07-01 20:26:11 +00:00
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<service name="Capture"> <child name="nitpicker"/> </service>
|
2020-07-16 09:28:18 +00:00
|
|
|
<service name="Event"> <child name="nitpicker"/> </service>
|
2017-09-06 17:15:36 +00:00
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2019-06-25 13:02:57 +00:00
|
|
|
<start name="report_rom">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Report"/> <service name="ROM"/>
|
|
|
|
</provides>
|
|
|
|
<config verbose="no">
|
|
|
|
<policy label="clipboard -> focus" report="nitpicker -> focus"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="nitpicker">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
2020-07-16 09:28:18 +00:00
|
|
|
<provides>
|
|
|
|
<service name="Gui"/> <service name="Capture"/> <service name="Event"/>
|
|
|
|
</provides>
|
2020-08-13 15:25:21 +00:00
|
|
|
<config focus="rom">
|
2020-07-16 09:28:18 +00:00
|
|
|
<capture/> <event/>
|
2019-06-25 13:02:57 +00:00
|
|
|
|
|
|
|
<report focus="yes" /> <!-- interpreted by clipboard -->
|
|
|
|
<domain name="pointer" layer="1" content="client" label="no" origin="pointer" />
|
|
|
|
<domain name="default" layer="2" content="client" label="no" hover="always"/>
|
|
|
|
|
|
|
|
<policy label_prefix="pointer" domain="pointer"/>
|
|
|
|
<default-policy domain="default"/>
|
|
|
|
</config>
|
|
|
|
<route>
|
2020-07-01 20:26:11 +00:00
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
2019-06-25 13:02:57 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="pointer">
|
2019-08-23 13:55:22 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
2019-06-25 13:02:57 +00:00
|
|
|
<route>
|
2020-06-11 14:06:21 +00:00
|
|
|
<service name="Gui"> <child name="nitpicker"/> </service>
|
2019-06-25 13:02:57 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="clipboard">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="ROM"/> <service name="Report"/>
|
|
|
|
</provides>
|
|
|
|
<config verbose="yes" match_labels="yes">
|
|
|
|
<default-policy domain="default"/>
|
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="focus"> <child name="report_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="wm" caps="1000">
|
|
|
|
<resource name="RAM" quantum="32M"/>
|
|
|
|
<binary name="init"/>
|
|
|
|
<provides>
|
2020-06-11 14:06:21 +00:00
|
|
|
<service name="Gui"/> <service name="Report"/> <service name="ROM"/>
|
2019-06-25 13:02:57 +00:00
|
|
|
</provides>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="config"> <parent label="wm.config"/> </service>
|
|
|
|
<service name="ROM" label_last="clipboard"> <child name="clipboard"/> </service>
|
|
|
|
<service name="Report" label_last="clipboard"> <child name="clipboard"/> </service>
|
2020-06-11 14:06:21 +00:00
|
|
|
<service name="Gui"> <child name="nitpicker"/> </service>
|
2019-06-25 13:02:57 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2019-08-23 13:55:22 +00:00
|
|
|
<start name="terminal" caps="110">
|
2020-12-22 14:49:28 +00:00
|
|
|
<resource name="RAM" quantum="6M"/>
|
2017-09-06 17:15:36 +00:00
|
|
|
<provides><service name="Terminal"/></provides>
|
2019-06-25 13:02:57 +00:00
|
|
|
<config copy="yes" paste="yes">
|
2020-12-22 14:49:28 +00:00
|
|
|
<initial width="800" height="600"/>
|
2019-06-25 13:02:57 +00:00
|
|
|
<vfs>
|
|
|
|
<rom name="VeraMono.ttf"/>
|
|
|
|
<dir name="fonts">
|
|
|
|
<dir name="monospace">
|
|
|
|
<ttf name="regular" path="/VeraMono.ttf" size_px="16"/>
|
|
|
|
</dir>
|
|
|
|
</dir>
|
|
|
|
</vfs>
|
|
|
|
</config>
|
2018-04-11 12:14:20 +00:00
|
|
|
<route>
|
2019-06-25 13:02:57 +00:00
|
|
|
<service name="ROM" label="clipboard"> <child name="wm"/> </service>
|
|
|
|
<service name="Report" label="clipboard"> <child name="wm"/> </service>
|
2020-12-22 14:49:28 +00:00
|
|
|
<service name="Gui"> <child name="wm" label="terminal"/> </service>
|
2018-04-11 12:14:20 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
2017-09-06 17:15:36 +00:00
|
|
|
</start>
|
|
|
|
|
2020-03-17 13:31:06 +00:00
|
|
|
<start name="vfs" caps="120">
|
|
|
|
<resource name="RAM" quantum="5M"/>
|
|
|
|
<provides><service name="File_system"/></provides>
|
2017-09-06 17:15:36 +00:00
|
|
|
<config>
|
2020-03-17 13:31:06 +00:00
|
|
|
<vfs>
|
|
|
|
<tar name="vim.tar" />
|
|
|
|
<dir name="dev">
|
|
|
|
<terminal/>
|
|
|
|
<inline name="rtc">2018-01-01 00:01</inline>
|
|
|
|
</dir>
|
|
|
|
</vfs>
|
|
|
|
|
|
|
|
<policy label_prefix="vfs_rom" root="/"/>
|
|
|
|
<default-policy root="/" writeable="yes"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="vfs_rom">
|
|
|
|
<resource name="RAM" quantum="5M"/>
|
|
|
|
<binary name="fs_rom"/>
|
|
|
|
<provides> <service name="ROM"/> </provides>
|
|
|
|
<config/>
|
|
|
|
<route>
|
|
|
|
<service name="File_system"> <child name="vfs"/> </service>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="/bin/vim" caps="150">
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
<config>
|
|
|
|
<libc stdin="/dev/terminal" stdout="/dev/terminal" stderr="/dev/terminal"
|
|
|
|
rtc="/dev/rtc"/>
|
|
|
|
|
|
|
|
<vfs> <fs/> </vfs>
|
|
|
|
|
|
|
|
<env key="TERM" value="screen" />
|
2017-09-06 17:15:36 +00:00
|
|
|
|
2020-03-17 13:31:06 +00:00
|
|
|
<arg value="/bin/vim" />
|
2017-09-06 17:15:36 +00:00
|
|
|
|
2020-03-17 13:31:06 +00:00
|
|
|
<!-- Deactivate the loading of plugins. Otherwise, vim will
|
|
|
|
attempt to use a sub shell for pattern matching -->
|
|
|
|
<arg value="--noplugin" />
|
2017-09-06 17:15:36 +00:00
|
|
|
|
2020-03-17 13:31:06 +00:00
|
|
|
<!-- Do not use swap file. Any attempt to create of would
|
|
|
|
fail because we are on a read-only file system -->
|
|
|
|
<arg value="-n" />
|
2017-09-06 17:15:36 +00:00
|
|
|
|
2020-03-17 13:31:06 +00:00
|
|
|
<!-- Use the nocompatible mode, which is much nicer than
|
|
|
|
the plain vi mode -->
|
|
|
|
<arg value="-N" />
|
2017-09-06 17:15:36 +00:00
|
|
|
|
2020-03-17 13:31:06 +00:00
|
|
|
<!-- Permanently display status bar -->
|
|
|
|
<arg value="--cmd" />
|
|
|
|
<arg value="set laststatus=2" />
|
2017-09-06 17:15:36 +00:00
|
|
|
|
2020-03-17 13:31:06 +00:00
|
|
|
<!-- Enable highlighted search results -->
|
|
|
|
<arg value="--cmd" />
|
|
|
|
<arg value="set hls" />
|
2017-09-06 17:15:36 +00:00
|
|
|
</config>
|
2019-06-25 13:02:57 +00:00
|
|
|
<route>
|
2020-03-17 13:31:06 +00:00
|
|
|
<service name="File_system"> <child name="vfs"/> </service>
|
|
|
|
<service name="ROM" label_suffix=".lib.so"> <parent/> </service>
|
|
|
|
<service name="ROM" label_last="/bin/vim"> <child name="vfs_rom"/> </service>
|
2019-06-25 13:02:57 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
2017-09-06 17:15:36 +00:00
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
2019-06-25 13:02:57 +00:00
|
|
|
set fd [open [run_dir]/genode/focus w]
|
|
|
|
puts $fd "<focus label=\"wm -> focus\" domain=\"default\"/>"
|
|
|
|
close $fd
|
|
|
|
|
2021-04-14 08:10:25 +00:00
|
|
|
copy_file [genode_dir]/repos/gems/recipes/raw/motif_wm/wm.config [run_dir]/genode/
|
2019-06-25 13:02:57 +00:00
|
|
|
|
|
|
|
build { server/wm server/clipboard server/terminal }
|
|
|
|
|
2023-11-17 15:46:32 +00:00
|
|
|
build_boot_image [build_artifacts]
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
run_genode_until forever
|