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/bcmregtool/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/bcmregtool/main.cpp')
| -rw-r--r-- | utils/bcmregtool/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/bcmregtool/main.cpp b/utils/bcmregtool/main.cpp index 7f8eb82..37d7c6a 100644 --- a/utils/bcmregtool/main.cpp +++ b/utils/bcmregtool/main.cpp @@ -10,7 +10,7 @@ /// //////////////////////////////////////////////////////////////////////////////// /// -/// @copyright Copyright (c) 2018, Evan Lojewski +/// @copyright Copyright (c) 2018-2020, Evan Lojewski /// @cond /// /// All rights reserved. @@ -78,6 +78,8 @@ #include "../NVRam/bcm5719_NVM.h" +#define VERSION_STRING STRINGIFY(VERSION_MAJOR) "." STRINGIFY(VERSION_MINOR) "." STRINGIFY(VERSION_PATCH) + using namespace std; using namespace ELFIO; using optparse::OptionParser; @@ -325,7 +327,9 @@ void step(void) int main(int argc, char const *argv[]) { - OptionParser parser = OptionParser().description("BCM Register Utility"); + OptionParser parser = OptionParser().description("BCM Register Utility v" VERSION_STRING); + + parser.version(VERSION_STRING); parser.add_option("--elf") .dest("debugfile") |

