Re: 2.6.14-rt15: cannot build with !PREEMPT_RT

Thomas Gleixner
2005-11-26T19:41:25Z

On Sat, 2005-11-26 at 14:05 -0500, Lee Revell wrote:

> -rt19 seems to work except that asm/io_apic.h fails to include
> asm/apicdef.h so MAX_IO_APICS is undefined.

The patch below fixes the Makefile x86_64 clutter and the io_apic
compile problem

tglx

Index: linux-2.6.14-rt/Makefile
===================================================================
--- linux-2.6.14-rt.orig/Makefile
+++ linux-2.6.14-rt/Makefile
@@ -189,8 +189,8 @@ SUBARCH := $(shell uname -m | sed -e s/i
# Default value for CROSS_COMPILE is not to prefix executables
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile

-ARCH = x86_64
-CROSS_COMPILE = x86_64-linux-
+ARCH ?= $(SUBARCH)
+CROSS_COMPILE ?=

# Architecture as present in compile.h
UTS_MACHINE := $(ARCH)
Index: linux-2.6.14-rt/arch/i386/kernel/i8253.c
===================================================================
--- linux-2.6.14-rt.orig/arch/i386/kernel/i8253.c
+++ linux-2.6.14-rt/arch/i386/kernel/i8253.c
@@ -10,10 +10,10 @@
#include <linux/init.h>
#include <linux/mca.h>

+#include <asm/smp.h>
#include <asm/io_apic.h>
#include <asm/delay.h>
#include <asm/i8253.h>
-#include <asm/smp.h>
#include <asm/io.h>

#include "io_ports.h"