Skip to content

CFE cmake toolchain script(s) should set OSAL_SYSTEM_BSPTYPE #438

@jphickey

Description

@jphickey

Is your feature request related to a problem? Please describe.
The OSAL scripts contain some convoluted logic to deal with the fact that the CFE PSP And OSAL BSP are overlapping in function. In particular the OSAL script checks CFE_SYSTEM_PSPNAME as a fallback if OSAL_SYSTEM_BSPTYPE is unset, in order to decide which BSP to use for unit tests.

It is desired to clean this up and simplify this logic.

Describe the solution you'd like
All example toolchains should set OSAL_SYSTEM_BSPTYPE so that OSAL builds a specific BSP for the platform, to be used for unit testing as well as (eventually) the PSP startup as well.

Additional context
Having this variable set simplifies the OSAL build considerably and makes it better isolated from the CFE build. A proposed change to OSAL (as part of issue nasa/osal#312) will make the OSAL_SYSTEM_BSPTYPE a required option, failing the build if it is unset

This change to the CFE toolchains should be backward-compatible.

Requester Info
Joseph Hickey, Vantage Systems, Inc.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions