Skip to content

Commit

Permalink
Makefile: add dirty tag if git repo was modified.
Browse files Browse the repository at this point in the history
Currently any uncommitted changes are not displayed properly.
example a "dirty git repo" will still show v1.69 as the version.

To differentiate, we should rather add --dirty option to git describe
to display the delta.

Signed-off-by: Nishanth Menon <nm@ti.com>
  • Loading branch information
nmenon committed Apr 9, 2014
1 parent daaf410 commit adc2a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -349,7 +349,7 @@ builddate.c: $(ALLOBJECTS)
echo 'char *builddate="'`date`'";' > builddate.c

version.c: $(ALLOBJECTS)
echo 'char *omapconf_version="'`git describe||echo "$(VERSION_MAJOR).$(VERSION_MINOR)-nogit"`'";' > version.c
echo 'char *omapconf_version="'`git describe --dirty||echo "$(VERSION_MAJOR).$(VERSION_MINOR)-nogit"`'";' > version.c



Expand Down

0 comments on commit adc2a06

Please sign in to comment.