Skip to content

How to link OS and BSP implementation files into the OSAL using the CMakelists #761

Answered by skliper
spaceusername asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@spaceusername
Comment options

@skliper
Comment options

Answer selected by spaceusername
@spaceusername
Comment options

@skliper
Comment options

@spaceusername
Comment options

@spaceusername
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants