add: log build information including commit branch, hash, and compile date
This commit is contained in:
parent
a249064059
commit
983c8b1e2f
@ -97,6 +97,7 @@ int main(void)
|
|||||||
MX_SPI1_Init();
|
MX_SPI1_Init();
|
||||||
/* USER CODE BEGIN 2 */
|
/* USER CODE BEGIN 2 */
|
||||||
debug_clear_console();
|
debug_clear_console();
|
||||||
|
debug_log(LOG_LEVEL_INFO, "AMS_Master on %s (%s), compiled at %s", COMMIT_BRANCH, COMMIT_HASH, COMPILE_DATE);
|
||||||
debug_log(LOG_LEVEL_INFO, "Starting BMS...");
|
debug_log(LOG_LEVEL_INFO, "Starting BMS...");
|
||||||
int status = -1;
|
int status = -1;
|
||||||
while (status != ADBMS_NO_ERROR) {
|
while (status != ADBMS_NO_ERROR) {
|
||||||
|
@ -24,6 +24,9 @@ cDefinitions:
|
|||||||
- STM32H7
|
- STM32H7
|
||||||
- USE_HAL_DRIVER
|
- USE_HAL_DRIVER
|
||||||
- FTCAN_NUM_FILTERS=20
|
- FTCAN_NUM_FILTERS=20
|
||||||
|
- COMMIT_HASH='"$(shell git describe --always --dirty --abbrev=8)"'
|
||||||
|
- COMMIT_BRANCH='"$(shell git rev-parse --abbrev-ref HEAD)"'
|
||||||
|
- COMPILE_DATE='"$(shell date +'%Y-%m-%d %H:%M:%S')"'
|
||||||
|
|
||||||
cxxDefinitions: []
|
cxxDefinitions: []
|
||||||
asDefinitions: []
|
asDefinitions: []
|
||||||
@ -40,6 +43,7 @@ asDefinitionsFile:
|
|||||||
cFlags:
|
cFlags:
|
||||||
- -Wall
|
- -Wall
|
||||||
- -Wextra
|
- -Wextra
|
||||||
|
- -Wshadow
|
||||||
- -fdata-sections
|
- -fdata-sections
|
||||||
- -ffunction-sections
|
- -ffunction-sections
|
||||||
- -std=gnu23
|
- -std=gnu23
|
||||||
|
Loading…
x
Reference in New Issue
Block a user