Skip to content

build information as compile time defines #182

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

Closed
jupe opened this issue Jun 9, 2016 · 6 comments
Closed

build information as compile time defines #182

jupe opened this issue Jun 9, 2016 · 6 comments

Comments

@jupe
Copy link

jupe commented Jun 9, 2016

Yotta had this feature and was useful for test applications we have: ARMmbed/yotta#403

Propose is to collect build/module information like:

#define MBED_BUILD_INFO_HEADER    // to detect when these information is available
#define MBED_BUILD_TIME "YYYY-MM-DD HH:MM:SS"
#define MBED_BUILD_VCS_ID    <project_tag+sha>
#define MBED_BUILD_VCS_CLEAN   //only if git workarea is clean
#define MBED_BUILD_UUID     <unique build id>
#define MBED_BUILD_VCS_ID_<MODULE>  <module_tag+sha>
#define MBED_TOOLCHAIN  <used toolchain>
#define MBED_TARGET     <used target>
#define MBED_OS_VERSION <git tag/sha>
@screamerbg
Copy link
Contributor

CC @bogdanm

@screamerbg
Copy link
Contributor

I like the idea. We already have something similar in the mbed build tools. Can you file this https://github.com/ARMmbed/mbed-os?

@jupe
Copy link
Author

jupe commented Jun 12, 2016

Also toolchain and target would be needed.

@screamerbg
Copy link
Contributor

This is already being added to mbed OS 4.0 tools - ARMmbed/mbed-os#1957. Closing here

@jupe
Copy link
Author

jupe commented Jun 18, 2016

I didn't found any documentation, example header file, tests either examples, so I would like to keep this open until I know that which part of my requirements is filled and which not and how can I use this new feature.

@jupe jupe reopened this Jun 18, 2016
@screamerbg
Copy link
Contributor

Can you file this against https://github.com/mbedmicro/mbed then?

AnotherButler pushed a commit to AnotherButler/mbed-cli that referenced this issue Jun 27, 2017
Update version number to match [Handbook PR ARMmbed#182](ARMmbed/mbed-os-5-docs#182).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants