genode/repos/libports/run/nim.run
Emery Hemingway caba2d3021 Enforce use of a custom Nim compiler
Use a custom Nim compiler at '/usr/local/genode-nim' that can be built
with a makefile at 'tool/tool_chain_nim'.

Fix #2545
2017-11-30 11:23:06 +01:00

62 lines
1.1 KiB
Plaintext

set build_components {
core init
drivers/timer
drivers/rtc
test/nim
}
build $build_components
create_boot_directory
set config {
<config>
<parent-provides>
<service name="CPU"/>
<service name="LOG"/>
<service name="IO_PORT"/>
<service name="PD"/>
<service name="RM"/>
<service name="ROM"/>
<service name="SIGNAL"/>
</parent-provides>
<default caps="64"/>
<default-route>
<any-service> <parent/> <any-child/> </any-service>
</default-route>
<start name="timer">
<resource name="RAM" quantum="1M"/>
<provides> <service name="Timer"/> </provides>
</start>
<start name="rtc_drv">
<resource name="RAM" quantum="1M"/>
<provides> <service name="Rtc"/> </provides>
</start>
<start name="test-nim" caps="128">
<resource name="RAM" quantum="10M"/>
<config>
<vfs>
<ram/> <log/> <rtc/>
</vfs>
<libc stdout="/log" stderr="/log" rtc="/rtc"/>
</config>
</start>
</config>
}
install_config $config
set boot_modules {
core init ld.lib.so
libc.lib.so
rtc_drv
test-nim
timer
}
build_boot_image $boot_modules
append qemu_args "-nographic"
run_genode_until {child "test-nim" exited with exit value 0} 30