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 #1436, table object file name #1437

Merged

Conversation

jphickey
Copy link
Contributor

Describe the contribution
Use a shell glob instead of assuming a specific file name, this should pick up the object file no matter how it was named, as
long as it ends in ${CMAKE_C_OUTPUT_EXTENSION}.

It does rely on/assume there is only one such file, so this might break if one changes the name of a table without a clean rebuild.

A proper fix would still be to use TARGET_OBJECTS generator expression, but that can't happen until Ubuntu 18.04 (w/ ver 3.10) is EOL.

Fixes #1436

Testing performed
Build and sanity check CFE, confirm tables are built successfully

Expected behavior changes
Tables should build even if the file name pattern is not as expected.

System(s) tested on
Ubuntu 20.04

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

@jphickey jphickey marked this pull request as draft April 28, 2021 18:00
@jphickey
Copy link
Contributor Author

Marking this as draft for now, need coordination w/ @klystron78 to test this on the VxWorks7 build where the issue was observed

@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label May 5, 2021
@astrogeco
Copy link
Contributor

astrogeco commented May 5, 2021

CCB:2021-05-05 APPROVED

  • Will go with second option

@astrogeco astrogeco added the CCB:Approved Indicates code review and approval by community CCB label May 5, 2021
@astrogeco
Copy link
Contributor

@jphickey is this ready?

This uses a sub-script to call elf2cfetbl which avoid relying
on a shell glob.  More complicated but should be more robust if/when
someone renames a table.

Note: A proper/simpler fix would still be to use TARGET_OBJECTS generator
expression, but that can't happen until Ubuntu 18.04 (w/ ver 3.10) or older
versions are no longer supported.
@jphickey jphickey marked this pull request as ready for review May 11, 2021 19:01
@jphickey
Copy link
Contributor Author

Rebased and consolidated to single commit with second version as discussed in CCB, should be good to merge now.

@astrogeco astrogeco added IC:2021-05-11 and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels May 11, 2021
@astrogeco astrogeco changed the base branch from main to integration-candidate May 11, 2021 19:32
@astrogeco astrogeco merged commit 893e4a2 into nasa:integration-candidate May 11, 2021
@jphickey jphickey deleted the fix-1436-tbl-filename branch May 14, 2021 14:23
@skliper skliper added this to the 7.0.0 milestone Sep 24, 2021
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.

Incorrect assumption about file name patterns in table build
3 participants