Skip to content

Fix #22: Clean up elf2cfetbl build logic#24

Merged
jphickey merged 1 commit intomasterfrom
fix-22-simplify-build
Oct 23, 2019
Merged

Fix #22: Clean up elf2cfetbl build logic#24
jphickey merged 1 commit intomasterfrom
fix-22-simplify-build

Conversation

@jphickey
Copy link
Contributor

@jphickey jphickey commented Oct 8, 2019

Remove the now-unnecessary inclusion of CFE TBL internal definitions.
All logic in this tool is based on public include files only.

CFE ensures that the header sizes are always a multiple of 4 bytes,
so the logic to selectively byte-align is unnecessary. CFE now
requires this to be 4-byte aligned.

Clean up all hacks in the CMake recipe, the build is now much
more straightforward when internal headers aren't being used.

Describe the contribution
Fixes issue #22, cleans up the build process for this tool.

IMPORTANT - This depends on nasa/cFE#27 and cannot be merged/tested prior to this being merged. This can only be cleaned up on this side once it is ensured that the internal CFE_TBL definitions are no longer required here.

Note this also removes the -n option to the tool, as nasa/cFE#27 now guarantees this to be 4-byte aligned through the use of compile-time checks. It is not possible for this option to do anything, and the code that implemented this option was depending on a symbol that was no longer available, so it was easiest and cleanest to just prune it out.

Testing performed
Rebuild code with sample table definitions. Table is built successfully.

Expected behavior changes
No impact to behavior

System(s) tested on:
Ubuntu 18.04.2, 64-bit

Contributor Info
Joseph Hickey, Vantage Systems, Inc.

Community contributors
You must attach a signed CLA (required for acceptance) or reference one already submitted

Remove the now-unnecessary inclusion of CFE TBL internal definitions.
All logic in this tool is based on public include files only.

CFE ensures that the header sizes are always a multiple of 4 bytes,
so the logic to selectively byte-align is unnecessary.  CFE now
requires this to be 4-byte aligned.

Clean up all hacks in the CMake recipe, the build is now much
more straightforward when internal headers aren't being used.
@skliper skliper added this to the 3.2.0 milestone Oct 10, 2019
@skliper skliper added the CCB:Approved Indicates code approval by CCB label Oct 10, 2019
jphickey added a commit that referenced this pull request Oct 11, 2019
Merge branches 'pull-15', 'pull-20', 'pull-21', 'pull-23'
and 'pull-24' for integration
@jphickey jphickey merged commit 95bdd6d into master Oct 23, 2019
@skliper skliper modified the milestone: 3.2.0 Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CCB:Approved Indicates code approval by CCB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants