Hi,
we are using Segger Embedded Studio for developing software with Nordic microcontrollers. I would like to automatically add a string, containing the build configuration name (e.g. "Release") and the git hash of our git repository, to the preprocessor definitions.
As an Example what I mean: In our eclipse projects we use the "shell" command to create preprocessor definitions that hold the git has and branch names. This would look like this:
VERSION_INFO="${ConfigName}_$(shell git rev-parse --abbrev-ref HEAD)_$(shell git rev-parse --short HEAD)"
The result is a string with a value like that: "Release_master_1ab3f12"
Is there an equivalent in Segger Embedded Studio to the Eclipse "shell" command? I could not find anything in the Embedded Studio documentation. Or is there another solution how to get the Git Has as a string that can be used globally in our software?
Thanks and best regards
Bjoern
we are using Segger Embedded Studio for developing software with Nordic microcontrollers. I would like to automatically add a string, containing the build configuration name (e.g. "Release") and the git hash of our git repository, to the preprocessor definitions.
As an Example what I mean: In our eclipse projects we use the "shell" command to create preprocessor definitions that hold the git has and branch names. This would look like this:
VERSION_INFO="${ConfigName}_$(shell git rev-parse --abbrev-ref HEAD)_$(shell git rev-parse --short HEAD)"
The result is a string with a value like that: "Release_master_1ab3f12"
Is there an equivalent in Segger Embedded Studio to the Eclipse "shell" command? I could not find anything in the Embedded Studio documentation. Or is there another solution how to get the Git Has as a string that can be used globally in our software?
Thanks and best regards
Bjoern