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
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,17 @@ This repostiory contains the first version of a possible RTEMS CMake build auppo
7
7
Include the `RTEMSGeneric.cmake` file in CMake and call the `rtems_generic_config` function, passing the RTEMS installation path (also commonly called prefix)
8
8
and the RTEMS BSP (e.g. sparc/erc32) to this function.
9
9
10
+
## Extending the build system support
11
+
12
+
This is still a prototype. It has been tested for the Hello World demo from the RTEMS quick start guide which uses the `sparc/erc32` BSP and for a STM32 blinky using the `arm/stm32h7` BSP.
13
+
14
+
Extending the build support is relatively easy:
15
+
16
+
Extract the necessary compiler and linker flags for the RTEMS build from the pkgconfig file
17
+
for the specific BSP. This file will generally be located inside the `lib/pkgconfig` folder of the RTEMS tools folder. Add these flags in the `RTEMSHardware.cmake` file for your specific BSP.
18
+
19
+
When building with CMake, `-v` can be added to verify the flags.
20
+
10
21
## Example
11
22
12
23
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,
0 commit comments