MICROPY_GIT_TAG and deterministic builds
Posted: Thu May 13, 2021 2:15 am
I'm using MP and trying to get reproducible builds.
The only diff in my builds between two different repos with the same source code (but different commit histories) comes from 7 bytes in 2 different places in the final binary.
I was able to track it down to the `MICROPY_GIT_TAG` and `MICROPY_GIT_HASH` being different.
These just appear to be used for informational purposes only in the REPL, and I don't think I need them anywhere since my shipping product never exposes the REPL.
Any downside I'm missing from hardcoding these in `py/makeversionhdr.py`?
Thanks.
The only diff in my builds between two different repos with the same source code (but different commit histories) comes from 7 bytes in 2 different places in the final binary.
I was able to track it down to the `MICROPY_GIT_TAG` and `MICROPY_GIT_HASH` being different.
These just appear to be used for informational purposes only in the REPL, and I don't think I need them anywhere since my shipping product never exposes the REPL.
Any downside I'm missing from hardcoding these in `py/makeversionhdr.py`?
Thanks.