From e1c9b235be32abecb38b327f06b08c43ce8a14bb Mon Sep 17 00:00:00 2001 From: Thomas Ballmann Date: Sun, 1 Nov 2020 16:20:51 +0100 Subject: [PATCH] #40 make firmware data accessible - missing file --- git_rev_macro.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 git_rev_macro.py diff --git a/git_rev_macro.py b/git_rev_macro.py new file mode 100644 index 0000000..850e953 --- /dev/null +++ b/git_rev_macro.py @@ -0,0 +1,8 @@ +import subprocess + +revision = ( + subprocess.check_output(["git", "rev-parse", "HEAD"]) + .strip() + .decode("utf-8") +) +print("-DFW_GIT_REV='\"%s\"'" % revision) \ No newline at end of file