Skip to contentSkip to conversation

linux/i386: change the way trampoline.S building is being suppressed

PATCH New Jan Beulich 1 participant 1 message Mar 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/i386: change the way trampoline.S building is being suppressed

Instead of using the disabled-obj-$() mechanism, preventing trampoline.S from being built can be done simply be adding a config option dependency.

As usual, written and tested on 2.6.25-rc5 and made apply to the 2.6.18 tree without further testing.

arch/i386/Kconfig +1 -0
Index: head-2008-03-11/arch/i386/Kconfig
===================================================================
@@ -1225,6 +1225,7 @@
 config X86_TRAMPOLINE
 	bool
 	depends on X86_SMP || (X86_VOYAGER && SMP)
+	depends on !XEN
 	default y
 
 config X86_NO_TSS
arch/i386/kernel/Makefile +1 -1
Index: head-2008-03-11/arch/i386/kernel/Makefile
===================================================================
@@ -84,5 +84,5 @@
 early_printk-y            += ../../x86_64/kernel/early_printk.o
 k8-y                      += ../../x86_64/kernel/k8.o
 
-disabled-obj-$(CONFIG_XEN) := i8259.o reboot.o smpboot.o trampoline.o
+disabled-obj-$(CONFIG_XEN) := i8259.o reboot.o smpboot.o
 %/head.o %/head.s: $(if $(CONFIG_XEN),EXTRA_AFLAGS,dummy) :=