diff options
| author | Evan Lojewski <github@meklort.com> | 2020-03-01 22:14:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-01 22:14:00 -0700 |
| commit | 4ac791b225dc148cda5b0fe519ceb438da79e0bd (patch) | |
| tree | 95d77b97ac0a85577a08341622aa1b1bc731b645 /utils/bcmflash/main.cpp | |
| parent | 4b06c31568b72192a51a8a61fd5045b588540042 (diff) | |
| download | bcm5719-ortega-4ac791b225dc148cda5b0fe519ceb438da79e0bd.tar.gz bcm5719-ortega-4ac791b225dc148cda5b0fe519ceb438da79e0bd.zip | |
build: Add version information to output files. (#52)
Diffstat (limited to 'utils/bcmflash/main.cpp')
| -rw-r--r-- | utils/bcmflash/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/bcmflash/main.cpp b/utils/bcmflash/main.cpp index 3626753..553adfe 100644 --- a/utils/bcmflash/main.cpp +++ b/utils/bcmflash/main.cpp @@ -10,7 +10,7 @@ /// //////////////////////////////////////////////////////////////////////////////// /// -/// @copyright Copyright (c) 2018, Evan Lojewski +/// @copyright Copyright (c) 2018-2020, Evan Lojewski /// @cond /// /// All rights reserved. @@ -68,6 +68,8 @@ #include "../NVRam/bcm5719_NVM.h" +#define VERSION_STRING STRINGIFY(VERSION_MAJOR) "." STRINGIFY(VERSION_MINOR) "." STRINGIFY(VERSION_PATCH) + using namespace std; using optparse::OptionParser; @@ -106,7 +108,9 @@ int main(int argc, char const *argv[]) uint8_t* stage1 = NULL; uint32_t* stage1_wd = NULL; - OptionParser parser = OptionParser().description("BCM Flash Utility"); + OptionParser parser = OptionParser().description("BCM Flash Utility v" VERSION_STRING); + + parser.version(VERSION_STRING); parser.add_option("-t", "--target") .choices({"hardware", "file"}) |

