kbuild: Clean up and speed up the localversion logic
authorMichal Marek <[email protected]>
Thu, 17 Jun 2010 13:14:58 +0000 (15:14 +0200)
committerMichal Marek <[email protected]>
Fri, 18 Jun 2010 12:23:21 +0000 (14:23 +0200)
commit09155120cf0ffe6f0c8aba3aa625831405b65996
tree1730bcdec93da248f0019ee2924828e996be2894
parentfb994ecc2b1c214951366c2ba5d8b121f0010d1f
kbuild: Clean up and speed up the localversion logic

Now that we run scripts/setlocalversion during every build, it makes
sense to move all the localversion logic there. This cleans up the
toplevel Makefile and also makes sure that the script is called only
once in 'make prepare' (previously, it would be called every time due to
a variable expansion in an ifneq statement). No user-visible change is
intended, unless one runs the setlocalversion script directly.

Reported-by: Dmitry Torokhov <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Greg Thelen <[email protected]>
Cc: Nico Schottelius <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
Makefile
scripts/package/Makefile
scripts/setlocalversion