build/tools: fix typo

This commit is contained in:
Florent Kermarrec 2019-04-23 18:09:12 +02:00
parent f0fe9f3cdf
commit 3ee78a5b70
1 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ else:
def cygpath(p): def cygpath(p):
return p return p
def get_migen_get_revision(): def get_migen_git_revision():
import migen import migen
d = os.getcwd() d = os.getcwd()
os.chdir(os.path.dirname(migen.__file__)) os.chdir(os.path.dirname(migen.__file__))
@ -99,7 +99,7 @@ def get_migen_get_revision():
os.chdir(d) os.chdir(d)
return r return r
def get_litex_get_revision(): def get_litex_git_revision():
import litex import litex
d = os.getcwd() d = os.getcwd()
os.chdir(os.path.dirname(litex.__file__)) os.chdir(os.path.dirname(litex.__file__))
@ -110,8 +110,8 @@ def get_litex_get_revision():
def generated_banner(line_comment="//"): def generated_banner(line_comment="//"):
r = line_comment + "-"*80 + "\n" r = line_comment + "-"*80 + "\n"
r += line_comment + " Auto-generated by Migen ({}) & LiteX ({}) on ".format( r += line_comment + " Auto-generated by Migen ({}) & LiteX ({}) on ".format(
get_migen_get_revision(), get_migen_git_revision(),
get_litex_get_revision()) get_litex_git_revision())
r += "{}\n".format(datetime.datetime.fromtimestamp(time.time()).strftime("%Y-%m-%d %H:%M:%S")) r += "{}\n".format(datetime.datetime.fromtimestamp(time.time()).strftime("%Y-%m-%d %H:%M:%S"))
r += line_comment + "-"*80 + "\n" r += line_comment + "-"*80 + "\n"
return r return r