Re: kbuild: Support LOCALVERSION

From: Sam Ravnborg
Date: Wed Sep 01 2004 - 00:11:35 EST


On Wed, Sep 01, 2004 at 11:24:22AM +1000, Ian Wienand wrote:

> Sorry to reply to myself, but I forgot to include a suggested patch
> (attached).
>
Thanks for the fix.

> @@ -763,7 +770,7 @@
> )
> endef
>
> -include/linux/version.h: Makefile
> +include/linux/version.h: $(srctree)/Makefile $(localversion-files)
> $(call filechk,version.h)
>

We could just make this:
include/linux/version.h: FORCE
$(call filechk,version.h)

Then version.h would be updated also if LOCALVERSION is specified on
the command line.
Only issue is that it will always be checked - but the same goes for
a few other files.

Sam
-
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/