You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@ The usual way to set up a cross-compile project in CMake is to specify a CMake t
8
8
RTEMS version, RTEMS prefix and the `pkgconfig` utility to set up the RTEMS environment properly so that application developers can focus on their application.
9
9
10
10
This is still a prototype. Simple applications have been tested, but no larger projects have been compiled with this build support yet.
11
-
The compilation of simple applications was tested on Windows 10 and Ubuntu 20.04
11
+
The compilation of simple applications was tested on Windows 10 and Ubuntu 20.04.
12
+
Improvements, suggestions and pull requests are welcome :-)
12
13
13
14
## How to use
14
15
@@ -67,6 +68,11 @@ The RTEMS CMake build support can be configured either by passing configuration
67
68
-`RTEMS_TOOLS`: Can be specified if the RTEMS tools folder. Can be different from the prefix but will be equal to the prefix for most users.
68
69
-`RTEMS_PATH`: Folder containing the RTEMS installation (BSPs). Can be different from the prefix but will be equal to the prefix for most users.
69
70
71
+
## CMake build configuration helper
72
+
73
+
A small python script is provided in the build support to allow easier configuration of the CMake build systems when using RTEMS. Call `cmake_build_config.py --help` to get
74
+
some information how to configure a build. Python 3 has to be installed to use this script.
75
+
70
76
## Extending the build system support
71
77
72
78
It is possible to read the pkfconfig files now, so extending the manual build configuration might not be necessary in the future.
@@ -75,7 +81,7 @@ If this becomes necessary after all, follow these steps:
75
81
76
82
Extract the necessary compiler and linker flags for the RTEMS build from the pkgconfig file for the specific BSP. This file will generally be located inside the `lib/pkgconfig` folder of the RTEMS tools folder. Add these flags manually before the `project` file call (see `RTEMSToolchain.cmake` for examples) for your specific BSP.
77
83
78
-
## Example
84
+
## Examples
79
85
80
86
See https://github.com/rmspacefish/rtems-demo/tree/master/applications/hello for an example. This is the Hello World project taken from the RTEMS quick start guide,
81
-
but compiled using RTEMS. The repository also contains instructions on how to build the RTEMS tools if required and all specific steps to build with CMake.
87
+
but compiled using RTEMS. The repository also contains instructions on how to build the RTEMS tools if required and all specific steps to build with CMake and a blinky example for the STM32H743ZI-Nucleo board.
0 commit comments