1 Always use the fallback behaviour for determining the version number
3 When built from within buildroot the micropython build process detects
4 that it is inside a git repository and ends up using the buildroot
5 version number instead of the correct micropython version number.
7 Signed-off-by: Chris Packham <judge.packham@gmail.com>
9 diff -Naur micropython-v1.4.5-old/py/makeversionhdr.py micropython-v1.4.5/py/makeversionhdr.py
10 --- micropython-v1.4.5-old/py/makeversionhdr.py 2015-08-12 00:42:30.000000000 +1200
11 +++ micropython-v1.4.5/py/makeversionhdr.py 2015-09-16 10:21:06.698962836 +1200
14 def make_version_header(filename):
15 # Get version info using git, with fallback to docs/conf.py
16 - info = get_version_info_from_git()
18 - info = get_version_info_from_docs_conf()
19 + info = get_version_info_from_docs_conf()
21 git_tag, git_hash, ver = info