Skip to content

Commit

Permalink
Fix year determination in build_info.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
theacodes committed Jan 24, 2021
1 parent 0f24ca7 commit 6a355e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/scripts/build_info.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ BUILD_INFO_COMPILER = $(CC) $(shell $(CC) -dumpversion)
BUILD_INFO_RELEASE = $(shell git describe --tags --abbrev=0)
# Looks like: 12 24 2020
BUILD_INFO_RELEASE_PARTS = $(subst ., ,$(BUILD_INFO_RELEASE))
BUILD_INFO_RELEASE_YEAR = $(word 3,$(BUILD_INFO_RELEASE_PARTS))
BUILD_INFO_RELEASE_YEAR = $(word 1,$(BUILD_INFO_RELEASE_PARTS))
BUILD_INFO_RELEASE_MONTH = $(word 2,$(BUILD_INFO_RELEASE_PARTS))
BUILD_INFO_RELEASE_DAY = $(word 1,$(BUILD_INFO_RELEASE_PARTS))
BUILD_INFO_RELEASE_DAY = $(word 3,$(BUILD_INFO_RELEASE_PARTS))
# Looks like: 12.24.2020-46-gb77c425-dirty
BUILD_INFO_REVISION = $(shell git describe --always --tags --dirty)
# Looks like: 20/01/2021 22:34 UTC
Expand Down

0 comments on commit 6a355e1

Please sign in to comment.