mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] "PREEMPT" in UTS_VERSION
@ 2005-02-09 18:40 Matt Mackall
  2005-03-14 20:49 ` Sam Ravnborg
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Mackall @ 2005-02-09 18:40 UTC (permalink / raw)
  To: Sam Ravnborg, linux-kernel

Add PREEMPT to UTS_VERSION where enabled as is done for SMP to make
preempt kernels easily identifiable.

Signed-off-by: Matt Mackall <mpm@selenic.com>

Index: mm1/scripts/mkcompile_h
===================================================================
--- mm1.orig/scripts/mkcompile_h	2004-04-03 19:38:28.000000000 -0800
+++ mm1/scripts/mkcompile_h	2005-02-08 23:02:11.000000000 -0800
@@ -2,6 +2,7 @@
 ARCH=$2
 SMP=$3
 CC=$4
+PREEMPT=$5
 
 # If compile.h exists already and we don't own autoconf.h
 # (i.e. we're not the same user who did make *config), don't
@@ -27,6 +28,7 @@
 
 UTS_VERSION="#$VERSION"
 if [ -n "$SMP" ] ; then UTS_VERSION="$UTS_VERSION SMP"; fi
+if [ -n "$PREEMPT" ] ; then UTS_VERSION="$UTS_VERSION PREEMPT"; fi
 UTS_VERSION="$UTS_VERSION `LC_ALL=C LANG=C date`"
 
 # Truncate to maximum length
Index: mm1/init/Makefile
===================================================================
--- mm1.orig/init/Makefile	2005-02-04 11:22:34.000000000 -0800
+++ mm1/init/Makefile	2005-02-08 23:02:07.000000000 -0800
@@ -25,4 +25,4 @@
 
 include/linux/compile.h: FORCE
 	@echo '  CHK     $@'
-	@$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"
+	@$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)" "$(CONFIG_PREEMPT)"

-- 
Mathematics is the supreme nostalgia of our time.

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

end of thread, other threads:[~2005-03-14 21:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-09 18:40 [PATCH] "PREEMPT" in UTS_VERSION Matt Mackall
2005-03-14 20:49 ` Sam Ravnborg
2005-03-14 21:01   ` Matt Mackall

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

all inboxes | Powered by JetHome®