projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b40d1b7
)
build/tools: add deprecated_warning
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Mon, 29 Apr 2019 08:12:54 +0000
(10:12 +0200)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Mon, 29 Apr 2019 08:12:54 +0000
(10:12 +0200)
litex/build/tools.py
patch
|
blob
|
history
diff --git
a/litex/build/tools.py
b/litex/build/tools.py
index 50fce4609b0392b0e69dfcf7041d6bb5302b9ec9..3de7c6b1a8b9c0d51329debda59c0f23eb3cf8af 100644
(file)
--- a/
litex/build/tools.py
+++ b/
litex/build/tools.py
@@
-121,3
+121,8
@@
def generated_banner(line_comment="//"):
r += "{}\n".format(datetime.datetime.fromtimestamp(time.time()).strftime("%Y-%m-%d %H:%M:%S"))
r += line_comment + "-"*80 + "\n"
return r
+
+
+def deprecated_warning(msg):
+ print("[WARNING] Deprecated, please update " + msg)
+ time.sleep(2) # annoy user to force update :)