scripts: Make git commit info always present
authorTao Hu <taoh@nvidia.com>
Wed, 8 Aug 2012 09:30:06 +0000 (17:30 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Tue, 21 Aug 2012 10:56:53 +0000 (15:56 +0530)
commit33580cdd15b384cbbb2bcba997a1b7c4c2343fa9
tree2d63bbc6cb0ec7dbd8ab44986b19b6e428f43fb9
parent38d92492595a592ca695ece21bd6b6a419dda3b4
scripts: Make git commit info always present

LOCALVERSION_AUTO is set by default.
And git commit will be part of the version.
E.g. "3.1.10-g0fe9b4a" where 0fe9b4a is the commit.

The version will appear in kpanic logs.
It would help developers to know the exact kernel version.

But a tagged commit (main-ics-2012.06.07-A5) will lead to no git info.
E.g. "3.1.10"
This patch will solve the issue.

Change-Id: I28370ada903b4be12bfc51eb3626512572e15c20
wChange-Id: I9dbb6c0a9e2964ead92114197a6d5c457ed7aab9
Signed-off-by: Tao Hu <taoh@nvidia.com>
Reviewed-on: http://git-master/r/123670
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
scripts/setlocalversion