|
@ -16,7 +16,11 @@ if missing_pkgs: |
|
|
from dulwich import porcelain |
|
|
from dulwich import porcelain |
|
|
|
|
|
|
|
|
def get_firmware_specifier_build_flag(): |
|
|
def get_firmware_specifier_build_flag(): |
|
|
|
|
|
try: |
|
|
build_version = porcelain.describe('../../') # refers to the repository root dir |
|
|
build_version = porcelain.describe('../../') # refers to the repository root dir |
|
|
|
|
|
except: |
|
|
|
|
|
build_version = "g0000000" |
|
|
|
|
|
|
|
|
build_flag = "-D AUTO_GIT_HASH=\\\"" + build_version + "\\\"" |
|
|
build_flag = "-D AUTO_GIT_HASH=\\\"" + build_version + "\\\"" |
|
|
print ("Firmware Revision: " + build_version) |
|
|
print ("Firmware Revision: " + build_version) |
|
|
return (build_flag) |
|
|
return (build_flag) |
|
|