linux-core Makefile: add GIT_REVISION
authorPekka Paalanen <pq@iki.fi>
Sun, 20 Apr 2008 17:47:38 +0000 (20:47 +0300)
committerPekka Paalanen <pq@iki.fi>
Tue, 22 Apr 2008 19:07:21 +0000 (22:07 +0300)
commitb3967765c082c4fae1954ec70474fb428ef42c70
tree93b9dd9f3e07523cac7a19484ba3e816b9791c06
parentce8c8425185cfe0390230b7b537f2e0514c721c6
linux-core Makefile: add GIT_REVISION

This tries to automatically fetch a git revision string and if succeeds,
it #defines GIT_REVISION string macro. Packagers can override it by
'make GIT_REVISION=foo'.

Update Nouveau to use GIT_REVISION, if defined, instead of DRIVER_DATE
in struct drm_driver.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
linux-core/Makefile
linux-core/nouveau_drv.c