-
Notifications
You must be signed in to change notification settings - Fork 3k
Separate version header file in Mbed OS #7434
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
Conversation
@deepikabhavnani These are 2 separate changes, albeit related. Please split into 2 PRs. |
2a44c2a
to
c136add
Compare
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.
Generally looks good, however when referencing macro parameters they should always have ( ) around them:
MBED_STATIC_ASSERT((MBED_VERSION >= MBED_ENCODE_VERSION(M,m,p))
M, m and p should be (M), (m) and (p)
c136add
to
19a2cef
Compare
👍 Done |
Related: #4891 |
Why was this number chosen for master? we might get there one day or not? 👍 for having separate version header file |
I'd be surprised if we ever get to a major version of 15 considering the major (no pun intended) changes involved in bumping that field! Though the actual number is irrelevant really. Perhaps 999999 might be better... |
19a2cef
to
656c088
Compare
Changed default version to 999999 |
LGTM |
@bulislaw @kjbracey-arm Thoughts? |
platform/mbed_version.h
Outdated
* @note: Version of master branch will be 999999 as default, hence no assert/warning is provided for | ||
* master branch code | ||
*/ | ||
#define MBED_VERSION_CHECK(M,m,p) do { \ |
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.
Can we change the parameters to full spelled out version lik in MBED_ENCODE_VERSION
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.
Done
656c088
to
05d8c74
Compare
/morph build |
Build : SUCCESSBuild number : 2582 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2224 |
Test : SUCCESSBuild number : 2334 |
Separate version header file in Mbed OS
Description
Separate version header file to have version details in Mbed OS source.
Update System stats to fetch Mbed OS version.
Pull request type
CC @adbridge @bulislaw