Skip to content

Commit 73cdbac

Browse files
lambourgFabien-Chouteau
authored andcommittedJun 9, 2020
Update the README according to the new build infrastructure.
no-tn-check Change-Id: I7b6df87cb63f3a4c1fa5bf0eacc0efacc0d7e0fd
1 parent ef07a49 commit 73cdbac

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed
 

‎README.md

+23-14
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,41 @@ This repository depends on both gcc and gnat repositories to generate a full
99
runtime. However it can also use the sources from an installed compiler and
1010
rely on those to just generate the BSP part of the runtime.
1111

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
1316

1417
```
15-
./build_rts.py --output=temp --bsps-only <board1> <board2> ...
18+
./build_rts.py --output=temp --build <board1> <board2> ...
1619
```
1720

1821
The list of supported boards is listed in build_rts.py within build_configs.
1922

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.
2125

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
2428

2529
```
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` ...
2831
```
2932

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
3234

33-
## rts with debug information
35+
## rebuild of a runtime
3436

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:
3746

3847
```
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

Comments
 (0)