@@ -9,32 +9,41 @@ This repository depends on both gcc and gnat repositories to generate a full
9
9
runtime. However it can also use the sources from an installed compiler and
10
10
rely on those to just generate the BSP part of the runtime.
11
11
12
- ## generation of BSPs
12
+ You need GNAT Pro 21.0w 20200327 or GNAT Community 2020 minimum to use
13
+ this repository to generate runtimes.
14
+
15
+ ## generation of runtimes
13
16
14
17
```
15
- ./build_rts.py --output=temp --bsps-only <board1> <board2> ...
18
+ ./build_rts.py --output=temp --build <board1> <board2> ...
16
19
```
17
20
18
21
The list of supported boards is listed in build_rts.py within build_configs.
19
22
20
- ## building and installing a runtime
23
+ The above call with generate the runtimes for <board1 > <board2 > in 'temp'
24
+ and will build them, assuming the proper compiler is in the PATH.
21
25
22
- Once a BSP is generated, make sure you have setup a GNAT compiler for the
23
- board's target, and call gprbuild/gprinstall
26
+ To install the runtime in the compiler's default location, you will thus
27
+ need to specify
24
28
25
29
```
26
- gprbuild -P temp/BSPs/<rts_project>.gpr -j0 -f
27
- gprinstall -P temp/BSPs/<rts_project>.gpr -p -f
30
+ ./build_rts.py --output <gnat_prefix>/<target>/lib/gnat` ...
28
31
```
29
32
30
- where -P specified the project file, -j0 specifies to build using all CPUs
31
- available on the host, -f forces a full project build.
33
+ So for example --output /opt/gnat/arm-eabi/lib/gnat
32
34
33
- ## rts with debug information
35
+ ## rebuild of a runtime
34
36
35
- To build a runtime with debug information, you can set the scenario variable
36
- BUILD to Debug:
37
+ To build a runtime with non default options, use the project file present in
38
+ the runtime folder: runtime_build.gpr for zfp runtimes and ravenscar_build.gpr
39
+ for ravenscar runtimes.
40
+
41
+ To build with debug options, use -XBUILD=Debug ; to build with assertions use
42
+ -XBUILD=Assert.
43
+
44
+ So for example to rebuild the ravenscar-sfp-stm32f4 runtime with debug
45
+ information, assuming GNAT is installed in ~ /install/gnat, run the following:
37
46
38
47
```
39
- gprbuild -P temp/BSPs/<rts_project> .gpr -j0 - XBUILD=Debug -f
40
- ```
48
+ gprbuild -P ~/install/gnat/arm-eabi/lib/gnat/ravenscar-sfp-stm32f4/ravenscar-build .gpr -XBUILD=Debug
49
+ ```
0 commit comments