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

[PATCH v2] linux-gen: include git tag in implementation string #2186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rayska
Copy link
Contributor

@Rayska Rayska commented Feb 26, 2025

odp_version_impl_str() output simplified as previously version was
displayed thrice.

odp_version_impl_str() returns either in format
"odp-linux-1.46.0.0-16a27d99", or "odp-linux-1.46.0.0" in the case that
the commit hash could not be retrieved.

This uses the system default shell, any POSIX-compliant shell should be fine.

@odpbuild odpbuild changed the title linux-gen: include git tag in implementation string [PATCH v1] linux-gen: include git tag in implementation string Feb 26, 2025
odp_version_impl_str() output simplified as previously version was
displayed thrice.

odp_version_impl_str() returns either in format
"odp-linux-1.46.0.0-16a27d99", or "odp-linux-1.46.0.0" in the case that
the commit hash could not be retrieved.

Signed-off-by: Ray Sointula <[email protected]>
Reviewed-by: Matias Elo <[email protected]>
@odpbuild odpbuild changed the title [PATCH v1] linux-gen: include git tag in implementation string [PATCH v2] linux-gen: include git tag in implementation string Feb 26, 2025
ODP_VERSION_TO_STR(ODP_VERSION_API_MINOR) ") " \
ODP_VERSION_TO_STR(ODP_VERSION_BUILD)
_ODP_IMPLEMENTATION_NAME "-" \
ODP_VERSION_TO_STR(ODP_VERSION_BUILD) _ODP_GIT_REVISION \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra backslash at the end. Also, the implementation version string could be formed directly in odp_version_impl_str() without adding this ODP_VERSION_IMPL_STR define.

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