| From c29a737a8c6dcb92416955cfb1eb2b3c9afdcab6 Mon Sep 17 00:00:00 2001 |
| From: Ingo Molnar <mingo@elte.hu> |
| Date: Fri, 3 Jul 2009 08:44:03 -0500 |
| Subject: [PATCH] Kbuild: fixup RT utsname |
| |
| commit 01234e0fa6eb9b1cd0976d1fdcc52c56a613658a in tip. |
| |
| Signed-off-by: Ingo Molnar <mingo@elte.hu> |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/init/Makefile b/init/Makefile |
| index 0bf677a..dc276e4 100644 |
| --- a/init/Makefile |
| +++ b/init/Makefile |
| @@ -29,4 +29,5 @@ silent_chk_compile.h = : |
| include/generated/compile.h: FORCE |
| @$($(quiet)chk_compile.h) |
| $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \ |
| - "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(KBUILD_CFLAGS)" |
| + "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CONFIG_PREEMPT_RT)" \ |
| + "$(CC) $(KBUILD_CFLAGS)" |
| diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h |
| index 23dbad8..20fc5f6 100755 |
| --- a/scripts/mkcompile_h |
| +++ b/scripts/mkcompile_h |
| @@ -4,7 +4,8 @@ TARGET=$1 |
| ARCH=$2 |
| SMP=$3 |
| PREEMPT=$4 |
| -CC=$5 |
| +PREEMPT_RT=$5 |
| +CC=$6 |
| |
| vecho() { [ "${quiet}" = "silent_" ] || echo "$@" ; } |
| |
| @@ -47,6 +48,7 @@ UTS_VERSION="#$VERSION" |
| CONFIG_FLAGS="" |
| if [ -n "$SMP" ] ; then CONFIG_FLAGS="SMP"; fi |
| if [ -n "$PREEMPT" ] ; then CONFIG_FLAGS="$CONFIG_FLAGS PREEMPT"; fi |
| +if [ -n "$PREEMPT_RT" ] ; then CONFIG_FLAGS="$CONFIG_FLAGS RT"; fi |
| UTS_VERSION="$UTS_VERSION $CONFIG_FLAGS $TIMESTAMP" |
| |
| # Truncate to maximum length |
| -- |
| 1.7.1.1 |
| |