Makefile (07021b43597f506cc525d139ed1a94e79cf184f2) | Makefile (38addce8b600ca335dc86fa3d48c890f1c6fa1f4) |
---|---|
1# 2# Makefile for the linux kernel. 3# 4 5CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' 6 7subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror 8 9ifeq ($(CONFIG_PPC64),y) 10CFLAGS_prom_init.o += $(NO_MINIMAL_TOC) 11endif 12ifeq ($(CONFIG_PPC32),y) 13CFLAGS_prom_init.o += -fPIC 14CFLAGS_btext.o += -fPIC 15endif 16 | 1# 2# Makefile for the linux kernel. 3# 4 5CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' 6 7subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror 8 9ifeq ($(CONFIG_PPC64),y) 10CFLAGS_prom_init.o += $(NO_MINIMAL_TOC) 11endif 12ifeq ($(CONFIG_PPC32),y) 13CFLAGS_prom_init.o += -fPIC 14CFLAGS_btext.o += -fPIC 15endif 16 |
17CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) 18CFLAGS_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) 19CFLAGS_btext.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) 20CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) 21 |
|
17ifdef CONFIG_FUNCTION_TRACER 18# Do not trace early boot code 19CFLAGS_REMOVE_cputable.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 20CFLAGS_REMOVE_prom_init.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 21CFLAGS_REMOVE_btext.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 22CFLAGS_REMOVE_prom.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 23# do not trace tracer code 24CFLAGS_REMOVE_ftrace.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 25# timers used by tracing 26CFLAGS_REMOVE_time.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 27endif 28 29obj-y := cputable.o ptrace.o syscalls.o \ 30 irq.o align.o signal_32.o pmc.o vdso.o \ 31 process.o systbl.o idle.o \ 32 signal.o sysfs.o cacheinfo.o time.o \ 33 prom.o traps.o setup-common.o \ | 22ifdef CONFIG_FUNCTION_TRACER 23# Do not trace early boot code 24CFLAGS_REMOVE_cputable.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 25CFLAGS_REMOVE_prom_init.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 26CFLAGS_REMOVE_btext.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 27CFLAGS_REMOVE_prom.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 28# do not trace tracer code 29CFLAGS_REMOVE_ftrace.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 30# timers used by tracing 31CFLAGS_REMOVE_time.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) 32endif 33 34obj-y := cputable.o ptrace.o syscalls.o \ 35 irq.o align.o signal_32.o pmc.o vdso.o \ 36 process.o systbl.o idle.o \ 37 signal.o sysfs.o cacheinfo.o time.o \ 38 prom.o traps.o setup-common.o \ |
34 udbg.o misc.o io.o dma.o misc_$(BITS).o \ | 39 udbg.o misc.o io.o dma.o \ 40 misc_$(CONFIG_WORD_SIZE).o \ |
35 of_platform.o prom_parse.o 36obj-$(CONFIG_PPC64) += setup_64.o sys_ppc32.o \ 37 signal_64.o ptrace32.o \ 38 paca.o nvram_64.o firmware.o 39obj-$(CONFIG_VDSO32) += vdso32/ 40obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o 41obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_ppc970.o cpu_setup_pa6t.o 42obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_power.o --- 21 unchanged lines hidden (view full) --- 64obj-$(CONFIG_E500) += idle_e500.o 65endif 66obj-$(CONFIG_6xx) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o 67obj-$(CONFIG_TAU) += tau_6xx.o 68obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o 69ifeq ($(CONFIG_FSL_BOOKE),y) 70obj-$(CONFIG_HIBERNATION) += swsusp_booke.o 71else | 41 of_platform.o prom_parse.o 42obj-$(CONFIG_PPC64) += setup_64.o sys_ppc32.o \ 43 signal_64.o ptrace32.o \ 44 paca.o nvram_64.o firmware.o 45obj-$(CONFIG_VDSO32) += vdso32/ 46obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o 47obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_ppc970.o cpu_setup_pa6t.o 48obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_power.o --- 21 unchanged lines hidden (view full) --- 70obj-$(CONFIG_E500) += idle_e500.o 71endif 72obj-$(CONFIG_6xx) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o 73obj-$(CONFIG_TAU) += tau_6xx.o 74obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o 75ifeq ($(CONFIG_FSL_BOOKE),y) 76obj-$(CONFIG_HIBERNATION) += swsusp_booke.o 77else |
72obj-$(CONFIG_HIBERNATION) += swsusp_$(BITS).o | 78obj-$(CONFIG_HIBERNATION) += swsusp_$(CONFIG_WORD_SIZE).o |
73endif 74obj64-$(CONFIG_HIBERNATION) += swsusp_asm64.o | 79endif 80obj64-$(CONFIG_HIBERNATION) += swsusp_asm64.o |
75obj-$(CONFIG_MODULES) += module.o module_$(BITS).o | 81obj-$(CONFIG_MODULES) += module.o module_$(CONFIG_WORD_SIZE).o |
76obj-$(CONFIG_44x) += cpu_setup_44x.o 77obj-$(CONFIG_PPC_FSL_BOOK3E) += cpu_setup_fsl_booke.o 78obj-$(CONFIG_PPC_DOORBELL) += dbell.o 79obj-$(CONFIG_JUMP_LABEL) += jump_label.o 80 | 82obj-$(CONFIG_44x) += cpu_setup_44x.o 83obj-$(CONFIG_PPC_FSL_BOOK3E) += cpu_setup_fsl_booke.o 84obj-$(CONFIG_PPC_DOORBELL) += dbell.o 85obj-$(CONFIG_JUMP_LABEL) += jump_label.o 86 |
81extra-y := head_$(BITS).o | 87extra-y := head_$(CONFIG_WORD_SIZE).o |
82extra-$(CONFIG_40x) := head_40x.o 83extra-$(CONFIG_44x) := head_44x.o 84extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o 85extra-$(CONFIG_8xx) := head_8xx.o 86extra-y += vmlinux.lds 87 | 88extra-$(CONFIG_40x) := head_40x.o 89extra-$(CONFIG_44x) := head_44x.o 90extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o 91extra-$(CONFIG_8xx) := head_8xx.o 92extra-y += vmlinux.lds 93 |
88obj-$(CONFIG_RELOCATABLE) += reloc_$(BITS).o | 94obj-$(CONFIG_RELOCATABLE) += reloc_$(CONFIG_WORD_SIZE).o |
89 90obj-$(CONFIG_PPC32) += entry_32.o setup_32.o 91obj-$(CONFIG_PPC64) += dma-iommu.o iommu.o 92obj-$(CONFIG_KGDB) += kgdb.o 93obj-$(CONFIG_MODULES) += ppc_ksyms.o 94ifeq ($(CONFIG_PPC32),y) 95obj-$(CONFIG_MODULES) += ppc_ksyms_32.o 96endif 97obj-$(CONFIG_BOOTX_TEXT) += btext.o 98obj-$(CONFIG_SMP) += smp.o 99obj-$(CONFIG_KPROBES) += kprobes.o 100obj-$(CONFIG_UPROBES) += uprobes.o 101obj-$(CONFIG_PPC_UDBG_16550) += legacy_serial.o udbg_16550.o 102obj-$(CONFIG_STACKTRACE) += stacktrace.o 103obj-$(CONFIG_SWIOTLB) += dma-swiotlb.o 104 105pci64-$(CONFIG_PPC64) += pci_dn.o pci-hotplug.o isa-bridge.o | 95 96obj-$(CONFIG_PPC32) += entry_32.o setup_32.o 97obj-$(CONFIG_PPC64) += dma-iommu.o iommu.o 98obj-$(CONFIG_KGDB) += kgdb.o 99obj-$(CONFIG_MODULES) += ppc_ksyms.o 100ifeq ($(CONFIG_PPC32),y) 101obj-$(CONFIG_MODULES) += ppc_ksyms_32.o 102endif 103obj-$(CONFIG_BOOTX_TEXT) += btext.o 104obj-$(CONFIG_SMP) += smp.o 105obj-$(CONFIG_KPROBES) += kprobes.o 106obj-$(CONFIG_UPROBES) += uprobes.o 107obj-$(CONFIG_PPC_UDBG_16550) += legacy_serial.o udbg_16550.o 108obj-$(CONFIG_STACKTRACE) += stacktrace.o 109obj-$(CONFIG_SWIOTLB) += dma-swiotlb.o 110 111pci64-$(CONFIG_PPC64) += pci_dn.o pci-hotplug.o isa-bridge.o |
106obj-$(CONFIG_PCI) += pci_$(BITS).o $(pci64-y) \ | 112obj-$(CONFIG_PCI) += pci_$(CONFIG_WORD_SIZE).o $(pci64-y) \ |
107 pci-common.o pci_of_scan.o 108obj-$(CONFIG_PCI_MSI) += msi.o 109obj-$(CONFIG_KEXEC) += machine_kexec.o crash.o \ | 113 pci-common.o pci_of_scan.o 114obj-$(CONFIG_PCI_MSI) += msi.o 115obj-$(CONFIG_KEXEC) += machine_kexec.o crash.o \ |
110 machine_kexec_$(BITS).o | 116 machine_kexec_$(CONFIG_WORD_SIZE).o |
111obj-$(CONFIG_AUDIT) += audit.o 112obj64-$(CONFIG_AUDIT) += compat_audit.o 113 114obj-$(CONFIG_PPC_IO_WORKAROUNDS) += io-workarounds.o 115 116obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o 117obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o 118obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o --- 58 unchanged lines hidden --- | 117obj-$(CONFIG_AUDIT) += audit.o 118obj64-$(CONFIG_AUDIT) += compat_audit.o 119 120obj-$(CONFIG_PPC_IO_WORKAROUNDS) += io-workarounds.o 121 122obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o 123obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o 124obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o --- 58 unchanged lines hidden --- |