-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the nodemcu-firmware version hash to the signon. #2799
Comments
Maybe we could move the mechanism used in docker to the build system. |
I'd prefer that the docker system ultimately move to something else; rewriting the header file is kind of rude and leaves the build tree dirty when the builds fail. The usual dance here is to have
A slightly better version of the above generates a temp file and only replaces the |
@nwf the Makefile might well be a better approach; I did something similar with Mercurial and an (Autotools) makefile. Given a separate version.h, updated only on success, excessive rebuilds should be avoidable. C W Rose |
This is more or less a dup of #2398
👍fully agree However, it's also true that both the cloud builder and the Docker builder have the need (says I) to inject extra information beyond the Git revision. So if our build could offer a hook for that I'd be more than happy to remove the work around. How about including an optional additional file like |
Yes, this looks like a re-run of #2398. I don't know enough about the build system to provide a solution, but if it's simple it would be well worth doing. (I don't really understand the 2.2.0 from node.info(), either.) C W Rose |
Maybe we could agree to add even more information, as requested in #1739 to the signeon and node.info() effectively moving the functionality from the docker build into the main build. |
The problem with fiddling with |
including the file in user_version.h just triggers rebuild of lua/lua.c and node.c. |
@marcelstoer I just tried It also might make sense to add a dirty indication. But the it would always be dirty on an individual build (selecting modules). How to handle this? |
Resolved by #2830. |
Running the current (20190405) NodeMCU build on an Adafruit HUZZAH I have:
and a reset gives:
I've been updating a number of systems, and a more precise indication of
the running NodeMCU version would be helpful. The easiest way would seem
to be the use of the Git checksum, perhaps via 'git log -1 --pretty="%H"'
or "%h"; if a Git server hook were used to write that information to a
project header file, and the result added to the signon, a firmware binary
could be easily identified.
Does GitHub have server hooks available to the project?
Justification
It would make checking and updating firmware easier..
Workarounds
No, but editing the header files directly would be possible.
C W Rose
The text was updated successfully, but these errors were encountered: