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 #84, split configuration #87

Merged
merged 1 commit into from
Apr 6, 2023
Merged

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Apr 6, 2023

Checklist (Please check before submitting)

Describe the contribution
Move configuration include files to a separate "config" subdirectory, and use the "generate_config_includefile" cmake function to select the one to use and create a wrapper.

This makes it easier to override the file and/or use a generated file in place of the distribution/default copy.

Fixes #84

Testing performed
Build and run HS and all tests, sanity check operation

Expected behavior changes
None

System(s) tested on
Debian

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

@jphickey jphickey force-pushed the fix-84-splitcfg branch 2 times, most recently from 4f8268a to d820730 Compare April 6, 2023 14:30
Move configuration include files to a separate "config" subdirectory,
and use the "generate_config_includefile" cmake function to select the
one to use and create a wrapper.

This makes it easier to override the file and/or use a generated file in
place of the distribution/default copy.
# This makes them individually overridable by the missions, without modifying
# the distribution default copies
foreach(HS_CFGFILE ${HS_PLATFORM_CONFIG_FILE_LIST})
set(DEFAULT_SOURCE "${CMAKE_CURRENT_LIST_DIR}/config/default_${HS_CFGFILE}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider consolidating the target_defs search patterns.
Tables has: https://github.com/nasa/cFE/blob/7af467efdc15f788d44d67cb807403b10c4f0c99/cmake/arch_build.cmake#L187-L201.
Then there's the file list:
https://github.com/nasa/cFE/blob/7af467efdc15f788d44d67cb807403b10c4f0c99/cmake/arch_build.cmake#L703-L712
Maybe there's more? Would be nice if the search logic was intuitive, consistent, and well documented.

@dzbaker dzbaker merged commit da7a5ff into nasa:main Apr 6, 2023
@jphickey jphickey deleted the fix-84-splitcfg branch April 12, 2023 12:44
@jphickey jphickey mentioned this pull request Apr 20, 2023
2 tasks
@dmknutsen dmknutsen added this to the Equuleus milestone May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split "platform_cfg" into external and internal components
5 participants