public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] read EXTRAVERSION from file
@ 2004-08-30 15:14 Christoph Hellwig
  2004-08-30 15:35 ` Muli Ben-Yehuda
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Christoph Hellwig @ 2004-08-30 15:14 UTC (permalink / raw)
  To: sam; +Cc: linux-kernel

The're an very interesting patch in the Debian tree still from the time
where Herbert Xu mentioned it, it allows creating a file .extraversion
in the toplevel kernel directory and the Makefile will set EXTRAVERSION
to it's contents.  This has the nice advantage of keeping an
extraversion pre-tree instead of having to patch the Makefile and
getting rejects everytime you pull a new tree (or BK refuses to touch
the Makefile).

The only thing I'm not fully comfortable is the .extraversion name, I
think I'd prefer a user-visible name.

Any other comments on this one?

--- kernel-source-2.6.6/Makefile	2004-05-10 19:47:45.000000000 +1000
+++ kernel-source-2.6.6-1/Makefile	2004-05-10 22:21:02.000000000 +1000
@@ -151,6 +151,9 @@
 
 export srctree objtree VPATH TOPDIR
 
+ifeq ($(EXTRAVERSION),)
+EXTRAVERSION := $(shell [ ! -f .extraversion ] || cat .extraversion)
+endif
 KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 
 # SUBARCH tells the usermode build what the underlying arch is.  That is set

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-09-10 22:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-30 15:14 [PATCH] read EXTRAVERSION from file Christoph Hellwig
2004-08-30 15:35 ` Muli Ben-Yehuda
2004-08-30 16:18 ` Sam Ravnborg
2004-08-31  6:20   ` Frank Steiner
2004-09-10 21:53 ` Matt Mackall
2004-09-10 22:11   ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox