- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe there is a better way to accomplish what I'm trying to do, but I'm looking to pass a build number into the build process from Jenkins which will use a batch file to execute the make command in a nightly build. In other words, I'd like to be able to pass in this number to be compiled in as part of the version number of the application. This number should become part of the CFLAGS.
The make files are more complex than what I've dealt with before and I haven't found an obvious solution.
Solved! Go to Solution.
- Labels:
-
WICED Studio Wi-Fi Combo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In a more generic sense, Can you have a look at this and see if it helps https://stackoverflow.com/questions/2826029/passing-additional-variables-from-command-line-to-make?
In WICED there is an option where you pass the build version from Makefiles when using ota2. You can use APP_VERSION_FOR_OTA2_MAJOR and APP_VERSION_FOR_OTA2_MINOR as strings in the make target and pass the values which gets stored in the DCT. Now you can something similar for your requirement based on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In a more generic sense, Can you have a look at this and see if it helps https://stackoverflow.com/questions/2826029/passing-additional-variables-from-command-line-to-make?
In WICED there is an option where you pass the build version from Makefiles when using ota2. You can use APP_VERSION_FOR_OTA2_MAJOR and APP_VERSION_FOR_OTA2_MINOR as strings in the make target and pass the values which gets stored in the DCT. Now you can something similar for your requirement based on this.