Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2507, add EDS cmake hooks #2511

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Feb 1, 2024

Checklist (Please check before submitting)

Describe the contribution
Adds CFE_EDS_ENABLED_BUILD option at the top level, along with other logic that is tied in only when this is set TRUE.

By default it is set to FALSE, so it does not change any existing workflows yet.

Also added are the keys for two configuration values for reflecting EDS DB objects (pointers) and some minor cleanup.

Fixes #2507

Testing performed
Build CFE and run all tests

Expected behavior changes
None when using defaults (EDS=OFF). All mods are behind the switch.

System(s) tested on
Debian

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

@@ -126,6 +126,78 @@
*/
extern CFE_StaticModuleLoadEntry_t CFE_PSP_MODULE_LIST[];

#ifdef CFE_EDS_ENABLED_BUILD

Check notice

Code scanning / CodeQL

Conditional compilation Note

Use of conditional compilation must be kept to a minimum.
* non-const pointer gets set NULL. There are no "write" operations
* in this mode -- registration and de-registration is not necessary.
*/
#ifdef CFE_EDS_LINK_MODE_GLOBAL

Check notice

Code scanning / CodeQL

Conditional compilation Note

Use of conditional compilation must be kept to a minimum.
* Dynamic (non-const) runtime EDS database object
* This is filled in as additional EDS datasheet objects are registered
*/
#ifdef CFE_EDS_LINK_MODE_LOCAL

Check notice

Code scanning / CodeQL

Conditional compilation Note

Use of conditional compilation must be kept to a minimum.
* For all of these DB objects, use NULL if not defined.
* This covers the case where EDS is not being used.
*/
#ifndef CFE_NONCONST_EDS_DB_PTR

Check notice

Code scanning / CodeQL

Conditional compilation Note

Use of conditional compilation must be kept to a minimum.
* Note that the non-const object can be used as a const object,
* but not the other way around. This can also be NULL.
*/
#ifndef CFE_CONST_EDS_DB_PTR

Check notice

Code scanning / CodeQL

Conditional compilation Note

Use of conditional compilation must be kept to a minimum.
* of the software bus messages. This can also be NULL if
* EDS is not being used.
*/
#ifndef CFE_SB_INTF_DB_PTR

Check notice

Code scanning / CodeQL

Conditional compilation Note

Use of conditional compilation must be kept to a minimum.
Adds CFE_EDS_ENABLED_BUILD option at the top level, along with
other logic that is tied in only when this is set TRUE.

By default it is set to FALSE, so it does not change any existing
workflows yet.

Also added are the keys for two configuration values for reflecting
EDS DB objects (pointers) and some minor cleanup.
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Feb 1, 2024
@dzbaker dzbaker added CCB:Approved Indicates code review and approval by community CCB and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Feb 1, 2024
dzbaker added a commit to nasa/cFS that referenced this pull request Feb 2, 2024
*Combines:*

cFE equuleus-rc1+dev90
ci_lab equuleus-rc1+dev57

**Includes:**

*cFE*
- nasa/cFE#2510
- nasa/cFE#2511

*osal*
- nasa/ci_lab#174

Co-authored by: Joseph Hickey <[email protected]>
@dzbaker dzbaker merged commit 6355bc2 into nasa:main Feb 2, 2024
22 checks passed
dzbaker added a commit to nasa/cFS that referenced this pull request Feb 2, 2024
*Combines:*

cFE equuleus-rc1+dev90
ci_lab equuleus-rc1+dev57

**Includes:**

*cFE*
- nasa/cFE#2510
- nasa/cFE#2511

*osal*
- nasa/ci_lab#174

Co-authored by: Joseph Hickey <[email protected]>
@jphickey jphickey deleted the fix-2507-eds-hooks branch March 7, 2024 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add EDS build hooks
2 participants