kbuild: introduce utsrelease.h

include/linux/version.h contained both actual KERNEL version
and UTS_RELEASE that contains a subset from git SHA1 for when
kernel was compiled as part of a git repository.
This had the unfortunate side-effect that all files including version.h
would be recompiled when some git changes was made due to changes SHA1.
Split it out so we keep independent parts in separate files.

Also update checkversion.pl script to no longer check for UTS_RELEASE.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
Sam Ravnborg
2006-07-03 23:30:54 +02:00
parent 0566838114
commit 63104eec23
14 changed files with 34 additions and 28 deletions

View File

@ -1,4 +1,4 @@
#include <linux/version.h>
#include <linux/utsrelease.h>
#include <linux/module.h>
/* Simply sanity version stamp for modules. */