mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-29 18:18:54 +00:00
91 lines
1.7 KiB
Plaintext
91 lines
1.7 KiB
Plaintext
|
#
|
||
|
# Build
|
||
|
#
|
||
|
set build_components {
|
||
|
app/sequence
|
||
|
lib/vfs/jitterentropy
|
||
|
server/vfs
|
||
|
test/fs_packet
|
||
|
}
|
||
|
|
||
|
build $build_components
|
||
|
|
||
|
create_boot_directory
|
||
|
|
||
|
import_from_depot \
|
||
|
genodelabs/src/[base_src] \
|
||
|
genodelabs/src/init \
|
||
|
|
||
|
#
|
||
|
# Generate config
|
||
|
#
|
||
|
append config {
|
||
|
<config>
|
||
|
<parent-provides>
|
||
|
<service name="IRQ"/>
|
||
|
<service name="IO_MEM"/>
|
||
|
<service name="IO_PORT"/>
|
||
|
<service name="CPU"/>
|
||
|
<service name="LOG"/>
|
||
|
<service name="PD"/>
|
||
|
<service name="ROM"/>
|
||
|
</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>
|
||
|
<start name="vfs">
|
||
|
<resource name="RAM" quantum="4M"/>
|
||
|
<provides> <service name="File_system"/> </provides>
|
||
|
<config>
|
||
|
<vfs> <jitterentropy name="test"/> </vfs>
|
||
|
<default-policy root="/" writeable="yes"/>
|
||
|
</config>
|
||
|
</start>
|
||
|
<start name="long-test">
|
||
|
<binary name="test-fs_packet"/>
|
||
|
<resource name="RAM" quantum="2M"/>
|
||
|
<config count="1024"/>
|
||
|
</start>
|
||
|
<start name="short-test">
|
||
|
<binary name="sequence"/>
|
||
|
<resource name="RAM" quantum="2M"/>
|
||
|
<config>
|
||
|
<start name="a">
|
||
|
<binary name="test-fs_packet"/>
|
||
|
<resource name="RAM" quantum="2M"/>
|
||
|
<config count="64"/>
|
||
|
</start>
|
||
|
<start name="b">
|
||
|
<binary name="test-fs_packet"/>
|
||
|
<resource name="RAM" quantum="2M"/>
|
||
|
<config count="64"/>
|
||
|
</start>
|
||
|
</config>
|
||
|
</start>
|
||
|
</config>
|
||
|
}
|
||
|
|
||
|
install_config $config
|
||
|
|
||
|
#
|
||
|
# Boot modules
|
||
|
#
|
||
|
set boot_modules {
|
||
|
sequence
|
||
|
test-fs_packet
|
||
|
vfs
|
||
|
vfs.lib.so
|
||
|
vfs_jitterentropy.lib.so
|
||
|
}
|
||
|
|
||
|
build_boot_image $boot_modules
|
||
|
|
||
|
append qemu_args " -nographic"
|
||
|
|
||
|
run_genode_until {child "short-test" exited with exit value 0} 60
|