File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 44
44
/**
45
45
* @brief Firmware version string, used at startup and for the 'i' command.
46
46
*/
47
- #define BP_FIRMWARE_STRING "Community Firmware v7.1 - goo.gl/gCzQnW "
47
+ #define _STRINGIFY (x ) #x
48
+ #define STRINGIFY (x ) _STRINGIFY(x)
49
+ #define BP_FIRMWARE_STRING "Community Firmware v7.1 - goo.gl/gCzQnW - " STRINGIFY(VERSION) " \r\n"
48
50
49
51
/**
50
52
* @brief Current mode configuration settings structure.
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ all: .all-post
85
85
86
86
.all-pre :
87
87
# Add your pre 'all' code here...
88
+ VERSION: =${shell git rev-parse --short HEAD}
88
89
89
90
.all-post : .all-impl
90
91
# Add your post 'all' code here...
Original file line number Diff line number Diff line change 314
314
<property key =" scalar-model" value =" default" />
315
315
<property key =" use-cci" value =" true" />
316
316
<property key =" use-iar" value =" false" />
317
- <appendMe value =" -save-temps -finline" />
317
+ <appendMe value =" -save-temps -finline -DVERSION=\ " $(VERSION)\ " " />
318
318
</C30 >
319
319
<C30-AR >
320
320
<property key =" additional-options-chop-files" value =" false" />
You can’t perform that action at this time.
0 commit comments