On Sat, Sep 25, 2021 at 2:21 PM David S. Alessio <david.s.ales...@gmail.com> wrote:
> Hi, Simon, > > It addresses the problem of knowing exactly what version of NuttX is > running on a platform. This problem often occurs, when in testing or > deployment, one discovers a problem which may or may not have already been > fixed. If you knew the version you’re running and the problem has been > fixed, you’d be able to easily cherry-pick the fix… > > > The script (gen_gitrev.sh) is attached (slightly later version than last > checked into orig NuttX.org repo) and should reside in in the nuttx/tools > subdir. > > I can create a patch and pull request if needed, but in the meantime see > attached. > > > The /tools/Makefile.unix needs one line added to the .version: recipe to > call the script: > Ah, see my other email: This should run only if .git exists. Else the sources are either from a tarball, or (like in my case) are kept in a different VCS. As long as git-dependent features are optional, I support (in principal -- I didn't fully review this particular script) an optional feature to identify the version. Cheers, Nathan