aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-09-20 20:16:20 -0400
committerPaul Mackerras <paulus@samba.org>2007-10-02 19:12:02 -0400
commit2578bfae84a78bd46fdbc0d2f9d39e9fbc9c8a3f (patch)
tree9dad1abf1dd5fa31cc1d507d559baa7e52d6a836 /arch/powerpc/kernel
parent75918a4b5998c93ee1ab131fbe64b97b5d0d2315 (diff)
[POWERPC] Create and use CONFIG_WORD_SIZE
Linus made this suggestion for the x86 merge and this starts the process for powerpc. We assume that CONFIG_PPC64 implies CONFIG_PPC_MERGE and CONFIG_PPC_STD_MMU_32 implies CONFIG_PPC_STD_MMU. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/Makefile30
1 files changed, 13 insertions, 17 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index b37165effb65..fb33a7e71941 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -38,10 +38,10 @@ obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o
38obj-$(CONFIG_CRASH_DUMP) += crash_dump.o 38obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
39obj-$(CONFIG_6xx) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o 39obj-$(CONFIG_6xx) += idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o
40obj-$(CONFIG_TAU) += tau_6xx.o 40obj-$(CONFIG_TAU) += tau_6xx.o
41obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o 41obj-$(CONFIG_HIBERNATION) += swsusp.o suspend.o \
42obj32-$(CONFIG_HIBERNATION) += swsusp_32.o 42 swsusp_$(CONFIG_WORD_SIZE).o
43obj64-$(CONFIG_HIBERNATION) += swsusp_64.o swsusp_asm64.o 43obj64-$(CONFIG_HIBERNATION) += swsusp_asm64.o
44obj32-$(CONFIG_MODULES) += module_32.o 44obj-$(CONFIG_MODULES) += module_$(CONFIG_WORD_SIZE).o
45 45
46ifeq ($(CONFIG_PPC_MERGE),y) 46ifeq ($(CONFIG_PPC_MERGE),y)
47 47
@@ -54,9 +54,10 @@ extra-$(CONFIG_8xx) := head_8xx.o
54extra-y += vmlinux.lds 54extra-y += vmlinux.lds
55 55
56obj-y += time.o prom.o traps.o setup-common.o \ 56obj-y += time.o prom.o traps.o setup-common.o \
57 udbg.o misc.o io.o 57 udbg.o misc.o io.o \
58obj-$(CONFIG_PPC32) += entry_32.o setup_32.o misc_32.o 58 misc_$(CONFIG_WORD_SIZE).o
59obj-$(CONFIG_PPC64) += misc_64.o dma_64.o iommu.o 59obj-$(CONFIG_PPC32) += entry_32.o setup_32.o
60obj-$(CONFIG_PPC64) += dma_64.o iommu.o
60obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o 61obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o
61obj-$(CONFIG_MODULES) += ppc_ksyms.o 62obj-$(CONFIG_MODULES) += ppc_ksyms.o
62obj-$(CONFIG_BOOTX_TEXT) += btext.o 63obj-$(CONFIG_BOOTX_TEXT) += btext.o
@@ -64,16 +65,12 @@ obj-$(CONFIG_SMP) += smp.o
64obj-$(CONFIG_KPROBES) += kprobes.o 65obj-$(CONFIG_KPROBES) += kprobes.o
65obj-$(CONFIG_PPC_UDBG_16550) += legacy_serial.o udbg_16550.o 66obj-$(CONFIG_PPC_UDBG_16550) += legacy_serial.o udbg_16550.o
66 67
67module-$(CONFIG_PPC64) += module_64.o 68pci64-$(CONFIG_PPC64) += pci_dn.o isa-bridge.o
68obj-$(CONFIG_MODULES) += $(module-y) 69obj-$(CONFIG_PCI) += pci_$(CONFIG_WORD_SIZE).o $(pci64-y) \
69 70 pci-common.o
70pci64-$(CONFIG_PPC64) += pci_64.o pci_dn.o isa-bridge.o
71pci32-$(CONFIG_PPC32) := pci_32.o
72obj-$(CONFIG_PCI) += $(pci64-y) $(pci32-y) pci-common.o
73obj-$(CONFIG_PCI_MSI) += msi.o 71obj-$(CONFIG_PCI_MSI) += msi.o
74kexec-$(CONFIG_PPC64) := machine_kexec_64.o 72obj-$(CONFIG_KEXEC) += machine_kexec.o crash.o \
75kexec-$(CONFIG_PPC32) := machine_kexec_32.o 73 machine_kexec_$(CONFIG_WORD_SIZE).o
76obj-$(CONFIG_KEXEC) += machine_kexec.o crash.o $(kexec-y)
77obj-$(CONFIG_AUDIT) += audit.o 74obj-$(CONFIG_AUDIT) += audit.o
78obj64-$(CONFIG_AUDIT) += compat_audit.o 75obj64-$(CONFIG_AUDIT) += compat_audit.o
79 76
@@ -87,7 +84,6 @@ smpobj-$(CONFIG_SMP) += smp.o
87 84
88endif 85endif
89 86
90obj-$(CONFIG_PPC32) += $(obj32-y)
91obj-$(CONFIG_PPC64) += $(obj64-y) 87obj-$(CONFIG_PPC64) += $(obj64-y)
92 88
93extra-$(CONFIG_PPC_FPU) += fpu.o 89extra-$(CONFIG_PPC_FPU) += fpu.o