mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-11 16:06:38 +02:00
* fix: compile possible for non repository versions (if project was download as zip)
This commit is contained in:
parent
6276957b22
commit
caa84dc9c6
1 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,11 @@ if missing_pkgs:
|
|||
from dulwich import porcelain
|
||||
|
||||
def get_firmware_specifier_build_flag():
|
||||
build_version = porcelain.describe('../../') # refers to the repository root dir
|
||||
try:
|
||||
build_version = porcelain.describe('../../') # refers to the repository root dir
|
||||
except:
|
||||
build_version = "g0000000"
|
||||
|
||||
build_flag = "-D AUTO_GIT_HASH=\\\"" + build_version + "\\\""
|
||||
print ("Firmware Revision: " + build_version)
|
||||
return (build_flag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue