diff options
Diffstat (limited to 'arch/powerpc/kernel/Makefile')
-rw-r--r-- | arch/powerpc/kernel/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 2346d271fbfd..bf0b1fd0ec34 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -12,6 +12,18 @@ CFLAGS_prom_init.o += -fPIC | |||
12 | CFLAGS_btext.o += -fPIC | 12 | CFLAGS_btext.o += -fPIC |
13 | endif | 13 | endif |
14 | 14 | ||
15 | ifdef CONFIG_FTRACE | ||
16 | # Do not trace early boot code | ||
17 | CFLAGS_REMOVE_cputable.o = -pg | ||
18 | CFLAGS_REMOVE_prom_init.o = -pg | ||
19 | |||
20 | ifdef CONFIG_DYNAMIC_FTRACE | ||
21 | # dynamic ftrace setup. | ||
22 | CFLAGS_REMOVE_ftrace.o = -pg | ||
23 | endif | ||
24 | |||
25 | endif | ||
26 | |||
15 | obj-y := cputable.o ptrace.o syscalls.o \ | 27 | obj-y := cputable.o ptrace.o syscalls.o \ |
16 | irq.o align.o signal_32.o pmc.o vdso.o \ | 28 | irq.o align.o signal_32.o pmc.o vdso.o \ |
17 | init_task.o process.o systbl.o idle.o \ | 29 | init_task.o process.o systbl.o idle.o \ |
@@ -38,12 +50,13 @@ obj-$(CONFIG_IBMVIO) += vio.o | |||
38 | obj-$(CONFIG_IBMEBUS) += ibmebus.o | 50 | obj-$(CONFIG_IBMEBUS) += ibmebus.o |
39 | obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o | 51 | obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o |
40 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o | 52 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
53 | obj-$(CONFIG_E500) += idle_e500.o | ||
41 | obj-$(CONFIG_6xx) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o | 54 | obj-$(CONFIG_6xx) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o |
42 | obj-$(CONFIG_TAU) += tau_6xx.o | 55 | obj-$(CONFIG_TAU) += tau_6xx.o |
43 | obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o \ | 56 | obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o \ |
44 | swsusp_$(CONFIG_WORD_SIZE).o | 57 | swsusp_$(CONFIG_WORD_SIZE).o |
45 | obj64-$(CONFIG_HIBERNATION) += swsusp_asm64.o | 58 | obj64-$(CONFIG_HIBERNATION) += swsusp_asm64.o |
46 | obj-$(CONFIG_MODULES) += module_$(CONFIG_WORD_SIZE).o | 59 | obj-$(CONFIG_MODULES) += module.o module_$(CONFIG_WORD_SIZE).o |
47 | obj-$(CONFIG_44x) += cpu_setup_44x.o | 60 | obj-$(CONFIG_44x) += cpu_setup_44x.o |
48 | 61 | ||
49 | ifeq ($(CONFIG_PPC_MERGE),y) | 62 | ifeq ($(CONFIG_PPC_MERGE),y) |
@@ -78,6 +91,8 @@ obj-$(CONFIG_KEXEC) += machine_kexec.o crash.o \ | |||
78 | obj-$(CONFIG_AUDIT) += audit.o | 91 | obj-$(CONFIG_AUDIT) += audit.o |
79 | obj64-$(CONFIG_AUDIT) += compat_audit.o | 92 | obj64-$(CONFIG_AUDIT) += compat_audit.o |
80 | 93 | ||
94 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o | ||
95 | |||
81 | obj-$(CONFIG_8XX_MINIMAL_FPEMU) += softemu8xx.o | 96 | obj-$(CONFIG_8XX_MINIMAL_FPEMU) += softemu8xx.o |
82 | 97 | ||
83 | ifneq ($(CONFIG_PPC_INDIRECT_IO),y) | 98 | ifneq ($(CONFIG_PPC_INDIRECT_IO),y) |