-
Notifications
You must be signed in to change notification settings - Fork 41
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
Reimplement impl
with fpp-to-cpp
#171
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review comments
There are two issues with this PR:
These both might be issues in FPP (@bocchino, thoughts?) |
(1) |
@thomas-bc: |
We can change this, but the way it works in FPP now is consistent with the way it works in XML and has always worked.
I don't think so, because the existing UT files are typically in test/ut and the generated files are in the component directory. This way the user can just copy the files over, without renaming files. It is inconsistent with the .template naming for the flight implementation, but it seems to work well based on experience so far. |
I agree, I'll open an issue to fix it in FPP. |
Is now a good time to make a v2.0.1 release of FPP to get these changes into F Prime mainline? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two comments!
src/fprime/fpp/impl.py
Outdated
build.build_dir / "F-Prime", | ||
build.build_dir, | ||
] | ||
if build.is_submodule_build_structure(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Also, this should not use "cmake root", but build.get_settings("project_path")
should it not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes absolutely, my mistake. By using project_root, we don't need to check whether the build structure is old or new, as project_root and framework_path will simply be the same. Note, both of these values are guaranteed to exist as per the following:
https://github.com/fprime-community/fprime-tools/blob/4fc88dc0a20fcadd5b09bb5a188bc41373237d5d/src/fprime/fbuild/settings.py#L52-L53
since find_fprime will error out if it can't find framework_location
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left two more comments.
Change Description
Implements nasa/fprime#2204
fprime-util impl [--ut]
now uses fpp-to-cpp instead of the Python autocoders (through cmake)Also uses the same interface to run the implementation after
fprime-util new --component
Also some small changes to help text here and there.