Giter Club home page Giter Club logo

Comments (4)

colinoflynn avatar colinoflynn commented on July 24, 2024

Waiting on my T962A to arrive to help out more with this project! But I looked into this before for my own projects - long story short if you are talking about the $ID$ tag type thing from CVS, it seems to be 'un-git-like' and probably will never be supported. The next-best option is to have a script (perhaps running on cron, or one that happens automatically on git updates) that checks the revision you've checked out and writes that to a header file. Would love to hear if there is a better solution, but that's all I came up with before...

from t-962-improvements.

eras avatar eras commented on July 24, 2024

I believe the generate-header-file (or rather: generate an implementation file and have a extern const char* version; in the header) is the way to go. You can add its generation to the build steps.
Bonus points for adding '-dirty' to the version if the source tree isn't committed :).

from t-962-improvements.

xnk avatar xnk commented on July 24, 2024

Yeah, isn't the Linux kernel going the generate-header-file route as that one is showing a truncated git hash (plus -dirty) when building it from a git repository? This might be a moot point if we move away from LPCXpresso for building as then the normal techniques can be used. Good input!!

from t-962-improvements.

xnk avatar xnk commented on July 24, 2024

Closing this for now, eras generated the git version data when building stand-alone - awesome! From within LPCXpresso I'm happy just providing "Unknown" for now. Any official release will be built stand-alone from now on.

from t-962-improvements.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.