Make git_commit script use firmware version env for fw tool (#482)

Make git_commit script use firmware verion env for fw tool when built from source
This commit is contained in:
lucas lelievre
2025-11-04 01:25:46 +01:00
committed by GitHub
parent a17c1c2d3f
commit 91b6318a8a

View File

@@ -36,7 +36,10 @@ except Exception:
output = f"-DGIT_REV='\"{revision}\"'"
if tag != "":
fwVersion = os.environ.get("FIRMWARE_VERSION")
if fwVersion is not None and fwVersion != "":
output += f" -DFIRMWARE_VERSION='\"{fwVersion}\"'"
elif tag != "":
output += f" -DFIRMWARE_VERSION='\"{tag}\"'"
elif branch != "":
output += f" -DFIRMWARE_VERSION='\"{branch}\"'"