]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/powerpc/kernel/Makefile
Pull mca-cleanup into release branch
[karo-tx-linux.git] / arch / powerpc / kernel / Makefile
1 #
2 # Makefile for the linux kernel.
3 #
4
5 ifeq ($(CONFIG_PPC64),y)
6 EXTRA_CFLAGS    += -mno-minimal-toc
7 endif
8 ifeq ($(CONFIG_PPC32),y)
9 CFLAGS_prom_init.o      += -fPIC
10 CFLAGS_btext.o          += -fPIC
11 endif
12
13 obj-y                           := semaphore.o cputable.o ptrace.o syscalls.o \
14                                    irq.o align.o signal_32.o pmc.o vdso.o \
15                                    init_task.o process.o systbl.o
16 obj-y                           += vdso32/
17 obj-$(CONFIG_PPC64)             += setup_64.o binfmt_elf32.o sys_ppc32.o \
18                                    signal_64.o ptrace32.o \
19                                    paca.o cpu_setup_power4.o \
20                                    firmware.o sysfs.o idle_64.o
21 obj-$(CONFIG_PPC64)             += vdso64/
22 obj-$(CONFIG_ALTIVEC)           += vecemu.o vector.o
23 obj-$(CONFIG_POWER4)            += idle_power4.o
24 obj-$(CONFIG_PPC_OF)            += of_device.o prom_parse.o
25 procfs-$(CONFIG_PPC64)          := proc_ppc64.o
26 obj-$(CONFIG_PROC_FS)           += $(procfs-y)
27 rtaspci-$(CONFIG_PPC64)         := rtas_pci.o
28 obj-$(CONFIG_PPC_RTAS)          += rtas.o rtas-rtc.o $(rtaspci-y)
29 obj-$(CONFIG_RTAS_FLASH)        += rtas_flash.o
30 obj-$(CONFIG_RTAS_PROC)         += rtas-proc.o
31 obj-$(CONFIG_LPARCFG)           += lparcfg.o
32 obj-$(CONFIG_IBMVIO)            += vio.o
33 obj-$(CONFIG_IBMEBUS)           += ibmebus.o
34 obj-$(CONFIG_GENERIC_TBSYNC)    += smp-tbsync.o
35 obj64-$(CONFIG_PPC_MULTIPLATFORM) += nvram_64.o
36 obj-$(CONFIG_CRASH_DUMP)        += crash_dump.o
37
38 ifeq ($(CONFIG_PPC_MERGE),y)
39
40 extra-$(CONFIG_PPC_STD_MMU)     := head_32.o
41 extra-$(CONFIG_PPC64)           := head_64.o
42 extra-$(CONFIG_40x)             := head_4xx.o
43 extra-$(CONFIG_44x)             := head_44x.o
44 extra-$(CONFIG_FSL_BOOKE)       := head_fsl_booke.o
45 extra-$(CONFIG_8xx)             := head_8xx.o
46 extra-y                         += vmlinux.lds
47
48 obj-y                           += time.o prom.o traps.o setup-common.o udbg.o
49 obj-$(CONFIG_PPC32)             += entry_32.o setup_32.o misc_32.o
50 obj-$(CONFIG_PPC64)             += misc_64.o dma_64.o iommu.o
51 obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o
52 obj-$(CONFIG_MODULES)           += ppc_ksyms.o
53 obj-$(CONFIG_BOOTX_TEXT)        += btext.o
54 obj-$(CONFIG_6xx)               += idle_6xx.o
55 obj-$(CONFIG_SMP)               += smp.o
56 obj-$(CONFIG_KPROBES)           += kprobes.o
57 obj-$(CONFIG_PPC_UDBG_16550)    += legacy_serial.o udbg_16550.o
58 module-$(CONFIG_PPC64)          += module_64.o
59 obj-$(CONFIG_MODULES)           += $(module-y)
60
61 pci64-$(CONFIG_PPC64)           += pci_64.o pci_dn.o pci_iommu.o \
62                                    pci_direct_iommu.o iomap.o
63 pci32-$(CONFIG_PPC32)           := pci_32.o
64 obj-$(CONFIG_PCI)               += $(pci64-y) $(pci32-y)
65 kexec-$(CONFIG_PPC64)           := machine_kexec_64.o crash.o
66 kexec-$(CONFIG_PPC32)           := machine_kexec_32.o
67 obj-$(CONFIG_KEXEC)             += machine_kexec.o $(kexec-y)
68
69 ifeq ($(CONFIG_PPC_ISERIES),y)
70 $(obj)/head_64.o: $(obj)/lparmap.s
71 AFLAGS_head_64.o += -I$(obj)
72 endif
73
74 else
75 # stuff used from here for ARCH=ppc
76 smpobj-$(CONFIG_SMP)            += smp.o
77
78 endif
79
80 obj-$(CONFIG_PPC64)             += $(obj64-y)
81
82 extra-$(CONFIG_PPC_FPU)         += fpu.o
83 extra-$(CONFIG_PPC64)           += entry_64.o