[PATCH] version.h should depend on .kernelrelease

From: Jan Beulich
Date: Wed Feb 22 2006 - 07:26:21 EST


Rebuilding a previously built tree while using make's -j options from time to
time results in the version.h check running at the same time as the updating
of .kernelrelease, resulting in UTS_RELEASE remaining an empty string (and as
a side effect causing the entire kernel to be rebuilt).

Signed-Off-By: Jan Beulich <jbeulich@xxxxxxxxxx>

diff -Npru /home/jbeulich/tmp/linux-2.6.16-rc4/Makefile 2.6.16-rc4-version.h-depends-on-kernelrelease/Makefile
--- /home/jbeulich/tmp/linux-2.6.16-rc4/Makefile 2006-02-20 09:12:27.000000000 +0100
+++ 2.6.16-rc4-version.h-depends-on-kernelrelease/Makefile 2006-02-20 09:59:29.000000000 +0100
@@ -905,7 +905,7 @@ define filechk_version.h
)
endef

-include/linux/version.h: $(srctree)/Makefile .config FORCE
+include/linux/version.h: $(srctree)/Makefile .config .kernelrelease FORCE
$(call filechk,version.h)

# ---------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/