Skip to content

__revision__: which audioif this firmware was built from - #17

Merged
bdbarnett merged 1 commit into
mainfrom
retool/revision
Sep 22, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
retool/revision

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

Each module reports its own build revision, the way pygraphics and audiodsp already do and MicroPython does for itself: the module's own micropython.mk/.cmake passes git describe --always --dirty as a compile definition, exposed as <module>.__revision__ (unknown with no git). Replaces the workspace's frozen pydevices_build module (cmods#36). Proven in the workspace on unix and on an ESP32-S3 image, which carries this repo's describe string.

A git describe of this repo, passed as a compile definition by its own
micropython.mk/.cmake and exposed as <module>.__revision__ -- the pattern
pygraphics and audiodsp already carry, and MicroPython's own for its
version. 'unknown' when there is no git. Replaces the workspace's frozen
pydevices_build stamp (cmods#36).
@bdbarnett
bdbarnett merged commit 7d88f27 into main Sep 22, 2026
2 checks passed
@bdbarnett
bdbarnett deleted the retool/revision branch September 22, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant