mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
1261c18ce9
The Ada runtime can now be set with the ADA_RTS variable. The ada library builds a (currently) minimal runtime from the gcc sources that come with Genode (to stay consistent with the used compiler) and sets the runtime path accordingly. It is build as a shared library ada.lib.so which needs to be added to the build files. I split the existing Ada test into program and library, and moved it to libports as it depends on the runtime library residing in this repository too. Fixes #2748
36 lines
790 B
Plaintext
36 lines
790 B
Plaintext
build "core init test/ada"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="LOG"/>
|
|
<service name="PD"/>
|
|
<service name="CPU"/>
|
|
<service name="ROM"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> </any-service>
|
|
</default-route>
|
|
<default caps="100"/>
|
|
<start name="test-ada">
|
|
<resource name="RAM" quantum="10M"/>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image "core ld.lib.so ada.lib.so init test-ada"
|
|
|
|
append qemu_args "-nographic "
|
|
|
|
run_genode_until {child "test-ada" exited with exit value 0.*} 20
|
|
|
|
grep_output {init -> test-ada}
|
|
unify_output {0x[0-9a-f]+} "UNIFIED"
|
|
|
|
compare_output_to {
|
|
[init -> test-ada] add called with a=13, b=14, result at address UNIFIED
|
|
[init -> test-ada] print_int called with argument 27
|
|
}
|