From: Florent Kermarrec Date: Tue, 23 Apr 2019 16:09:12 +0000 (+0200) Subject: build/tools: fix typo X-Git-Tag: 24jan2021_ls180~1275 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ee78a5b70a5d1cef5a5fc6cfc9719880adf8881;p=litex.git build/tools: fix typo --- diff --git a/litex/build/tools.py b/litex/build/tools.py index 5cd92eb4..aa67b9d8 100644 --- a/litex/build/tools.py +++ b/litex/build/tools.py @@ -91,7 +91,7 @@ else: def cygpath(p): return p -def get_migen_get_revision(): +def get_migen_git_revision(): import migen d = os.getcwd() os.chdir(os.path.dirname(migen.__file__)) @@ -99,7 +99,7 @@ def get_migen_get_revision(): os.chdir(d) return r -def get_litex_get_revision(): +def get_litex_git_revision(): import litex d = os.getcwd() os.chdir(os.path.dirname(litex.__file__)) @@ -110,8 +110,8 @@ def get_litex_get_revision(): def generated_banner(line_comment="//"): r = line_comment + "-"*80 + "\n" r += line_comment + " Auto-generated by Migen ({}) & LiteX ({}) on ".format( - get_migen_get_revision(), - get_litex_get_revision()) + get_migen_git_revision(), + get_litex_git_revision()) r += "{}\n".format(datetime.datetime.fromtimestamp(time.time()).strftime("%Y-%m-%d %H:%M:%S")) r += line_comment + "-"*80 + "\n" return r \ No newline at end of file