[PATCH] "PREEMPT" in UTS_VERSION
From: Matt Mackall (mpm_at_selenic.com)
Date: 02/09/05
- Previous message: Nicolas Pitre: "Re: [RFC] Linux Kernel Subversion Howto"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 9 Feb 2005 10:40:11 -0800 To: Sam Ravnborg <sam@ravnborg.org>, linux-kernel <linux-kernel@vger.kernel.org>
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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Nicolas Pitre: "Re: [RFC] Linux Kernel Subversion Howto"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|