Skip to content

Conversation

@celskeggs
Copy link
Collaborator

Related Issue(s) n/a
Has Unit Tests (y/n) n
Documentation Included (y/n) n

Change Description

When F Prime is configured with FW_OBJECT_NAMES == 0, the getObjName() function is not available, which causes a failure to build. Use FW_OPTIONAL_NAME to allow LinuxGpioDriver to build.

Rationale

Allows projects that set FW_OBJECT_NAMES to 0 to run fprime-util build native on their root directory without issue.

Testing/Review Recommendations

There's an argument for using a better replacement than an empty string when object names are omitted, but I'm not sure it matters very much.

Future Work

It would be nice to have a Linux platform with FW_OBJECT_NAMES == 0 be included in CI to avoid problems like this from cropping up in the future.

When F Prime is configured with FW_OBJECT_NAMES == 0, the getObjName()
function is not available, which causes a failure to build.
@LeStarch LeStarch merged commit 3871ccc into nasa:devel Jan 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants