]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/xen/Makefile
xen: compile irq functions without -pg for ftrace
[linux-2.6-omap-h63xx.git] / arch / x86 / xen / Makefile
index 2ba2d1649131a1b0151911179679b599a98b9272..9ee745fa552742b907e4a345a57f7ba3bab38caa 100644 (file)
@@ -1,4 +1,11 @@
-obj-y          := enlighten.o setup.o multicalls.o mmu.o \
-                       time.o xen-asm.o grant-table.o suspend.o
+ifdef CONFIG_FTRACE
+# Do not profile debug and lowlevel utilities
+CFLAGS_REMOVE_spinlock.o = -pg
+CFLAGS_REMOVE_time.o = -pg
+CFLAGS_REMOVE_irq.o = -pg
+endif
 
-obj-$(CONFIG_SMP)      += smp.o
+obj-y          := enlighten.o setup.o multicalls.o mmu.o irq.o \
+                       time.o xen-asm_$(BITS).o grant-table.o suspend.o
+
+obj-$(CONFIG_SMP)      += smp.o spinlock.o