mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-01-11 23:43:15 +00:00
It also stores the dirty status so that's known. This does some Makefile tricks so that we only rebuild when the git hash changes. This avoids rebuilding the world every time we run make. Also adds fusesoc generator, so that should continue to work as before. Signed-off-by: Dan Horák <dan@danny.cz> Signed-off-by: Michael Neuling <mikey@neuling.org>
16 lines
398 B
Python
Executable File
16 lines
398 B
Python
Executable File
#!/usr/bin/env python
|
|
#
|
|
# Simple wrapper around make_version.sh that fusesoc needs
|
|
# Just pulls out the files_root from yaml so we know where to run.
|
|
#
|
|
|
|
import yaml
|
|
import sys
|
|
import os
|
|
|
|
with open(sys.argv[1], 'r') as stream:
|
|
data = yaml.safe_load(stream)
|
|
|
|
# Run make version in source dir so we can get the git version
|
|
os.system("cd %s; scripts/make_version.sh git.vhdl" % data["files_root"])
|