mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 03:18:09 +00:00
build: git describe is better than rev-parse
This commit is contained in:
parent
2fc69bed61
commit
5ea75b469f
2
Makefile
2
Makefile
@ -38,7 +38,7 @@ BOARDLOADER_MAXSIZE = 49152
|
|||||||
BOOTLOADER_MAXSIZE = 131072
|
BOOTLOADER_MAXSIZE = 131072
|
||||||
FIRMWARE_MAXSIZE = 786432
|
FIRMWARE_MAXSIZE = 786432
|
||||||
|
|
||||||
GITREV=$(shell git rev-parse --short HEAD)
|
GITREV=$(shell git describe --always --dirty)
|
||||||
CFLAGS += -DGITREV=$(GITREV)
|
CFLAGS += -DGITREV=$(GITREV)
|
||||||
|
|
||||||
## help commands:
|
## help commands:
|
||||||
|
Loading…
Reference in New Issue
Block a user