How to link OS and BSP implementation files into the OSAL using the CMakelists #761
-
Hey all, I'm currently trying to integrate a new target bsp and RTOS into the cFS build. I see in the os-impl files for rtems and vxworks that angle bracket includes are used for OS source files etc. I have not been able to find where the included files are set as SYSTEM includes in the CMakelists. Is include_directories(SYSTEM ......) used or is another method being used that I am not aware of? My chief concern is that I would like to integrate the new BSP, OS, Filesystem, and Network Layer appropriately, but I have not been able to find many resources that detail that information when it comes to linking in the actual source files of each. So far I have been checking through the discussion forums as well as other existent forks of cFS. Any information yall can provide is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Is this what you are looking for? Typically it's either in the toolchain or one of these platform files if this isn't the exact setting you are interested in. |
Beta Was this translation helpful? Give feedback.
Ohhhh, for the current project I'm working linking source for RTEMS depends on if you want to make a stand-alone executable or a loadable module. To support osal unit testing with stand-alone executables it needs to be linked in from the OSAL BSP:
https://github.com/nasa/osal/blob/372ea659885d9b306bfdb9b879e0d56c74f96709/src/bsp/generic-rtems/CMakeLists.txt#L26-L31
If just loading it, then VxWorks and RTEMS have the implementation source linked in wherever you are loading from. Related PSP logic:
https://github.com/nasa/PSP/blob/70be39db9259061d3c9aaf1bc3eb8921e8794828/cmake/Modules/Platform/RTEMS.cmake#L45-L72