aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-09-29 23:51:25 -0400
committerStephen Rothwell <sfr@canb.auug.org.au>2005-10-01 04:51:12 -0400
commitbd142b70a6bd5522f7d95f0cec06091b93bb0715 (patch)
tree7982cf5585a88680e0ac55e71f0009790a5cb68b /arch
parentdc1c1ca3dcd94c545c5e01d7c06b46824d43f4d0 (diff)
ppc64: simplify the build a little
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/Makefile1
-rw-r--r--arch/powerpc/kernel/Makefile11
-rw-r--r--arch/ppc64/Makefile2
-rw-r--r--arch/ppc64/kernel/Makefile11
4 files changed, 12 insertions, 13 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 92751ca6f8b1..9f80deb05ecc 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -121,7 +121,6 @@ head-$(CONFIG_FSL_BOOKE) := arch/powerpc/kernel/head_fsl_booke.o
121 121
122ifeq ($(CONFIG_PPC32),y) 122ifeq ($(CONFIG_PPC32),y)
123head-$(CONFIG_6xx) += arch/powerpc/kernel/idle_6xx.o 123head-$(CONFIG_6xx) += arch/powerpc/kernel/idle_6xx.o
124head-$(CONFIG_POWER4) += arch/powerpc/kernel/idle_power4.o
125head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o 124head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o
126endif 125endif
127 126
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index 58c130b10ec8..b5eff3ef2f3d 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -2,6 +2,10 @@
2# Makefile for the linux kernel. 2# Makefile for the linux kernel.
3# 3#
4 4
5ifeq ($(CONFIG_PPC64),y)
6EXTRA_CFLAGS += -mno-minimal-toc
7endif
8
5extra-$(CONFIG_PPC_STD_MMU) := head.o 9extra-$(CONFIG_PPC_STD_MMU) := head.o
6extra_$(CONFIG_PPC64) := head_64.o 10extra_$(CONFIG_PPC64) := head_64.o
7extra-$(CONFIG_40x) := head_4xx.o 11extra-$(CONFIG_40x) := head_4xx.o
@@ -9,10 +13,13 @@ extra-$(CONFIG_44x) := head_44x.o
9extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o 13extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o
10extra-$(CONFIG_8xx) := head_8xx.o 14extra-$(CONFIG_8xx) := head_8xx.o
11extra-$(CONFIG_6xx) += idle_6xx.o 15extra-$(CONFIG_6xx) += idle_6xx.o
12extra-$(CONFIG_POWER4) += idle_power4.o
13extra-$(CONFIG_PPC_FPU) += fpu.o 16extra-$(CONFIG_PPC_FPU) += fpu.o
14extra-y += vmlinux.lds 17extra-y += vmlinux.lds
15 18
16obj-y := semaphore.o traps.o process.o 19obj-y := traps.o
20obj-$(CONFIG_PPC32) += semaphore.o process.o
21obj-$(CONFIG_PPC64) += idle_power4.o
22ifeq ($(CONFIG_PPC32),y)
17obj-$(CONFIG_MODULES) += ppc_ksyms.o 23obj-$(CONFIG_MODULES) += ppc_ksyms.o
24endif
18obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o 25obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o
diff --git a/arch/ppc64/Makefile b/arch/ppc64/Makefile
index d4eb55f82f03..fa889204d6ae 100644
--- a/arch/ppc64/Makefile
+++ b/arch/ppc64/Makefile
@@ -82,7 +82,7 @@ CFLAGS += $(call cc-option,-funit-at-a-time)
82head-y := arch/ppc64/kernel/head.o 82head-y := arch/ppc64/kernel/head.o
83 83
84libs-y += arch/ppc64/lib/ 84libs-y += arch/ppc64/lib/
85core-y += arch/ppc64/kernel/ 85core-y += arch/ppc64/kernel/ arch/powerpc/kernel/
86core-y += arch/ppc64/mm/ 86core-y += arch/ppc64/mm/
87core-y += arch/powerpc/platforms/ 87core-y += arch/powerpc/platforms/
88core-$(CONFIG_XMON) += arch/ppc64/xmon/ 88core-$(CONFIG_XMON) += arch/ppc64/xmon/
diff --git a/arch/ppc64/kernel/Makefile b/arch/ppc64/kernel/Makefile
index 9457fe63d125..90a1519342da 100644
--- a/arch/ppc64/kernel/Makefile
+++ b/arch/ppc64/kernel/Makefile
@@ -7,12 +7,12 @@ ifneq ($(CONFIG_PPC_MERGE),y)
7EXTRA_CFLAGS += -mno-minimal-toc 7EXTRA_CFLAGS += -mno-minimal-toc
8extra-y := head.o vmlinux.lds 8extra-y := head.o vmlinux.lds
9 9
10obj-y := setup.o entry.o traps.o irq.o idle.o dma.o \ 10obj-y := setup.o entry.o irq.o idle.o dma.o \
11 time.o process.o signal.o syscalls.o misc.o ptrace.o \ 11 time.o process.o signal.o syscalls.o misc.o ptrace.o \
12 align.o semaphore.o bitops.o pacaData.o \ 12 align.o semaphore.o bitops.o pacaData.o \
13 udbg.o binfmt_elf32.o sys_ppc32.o ioctl32.o \ 13 udbg.o binfmt_elf32.o sys_ppc32.o ioctl32.o \
14 ptrace32.o signal32.o rtc.o init_task.o \ 14 ptrace32.o signal32.o rtc.o init_task.o \
15 lmb.o cputable.o cpu_setup_power4.o idle_power4.o \ 15 lmb.o cputable.o cpu_setup_power4.o \
16 iommu.o sysfs.o vdso.o pmc.o firmware.o prom.o 16 iommu.o sysfs.o vdso.o pmc.o firmware.o prom.o
17obj-y += vdso32/ vdso64/ 17obj-y += vdso32/ vdso64/
18 18
@@ -66,7 +66,6 @@ obj-$(CONFIG_PPC_BPA) += pSeries_smp.o
66obj-$(CONFIG_PPC_MAPLE) += smp-tbsync.o 66obj-$(CONFIG_PPC_MAPLE) += smp-tbsync.o
67endif 67endif
68 68
69obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o
70obj-$(CONFIG_KPROBES) += kprobes.o 69obj-$(CONFIG_KPROBES) += kprobes.o
71 70
72CFLAGS_ioctl32.o += -Ifs/ 71CFLAGS_ioctl32.o += -Ifs/
@@ -76,12 +75,6 @@ arch/ppc64/kernel/head.o: arch/powerpc/platforms/iseries/lparmap.s
76AFLAGS_head.o += -Iarch/powerpc/platforms/iseries 75AFLAGS_head.o += -Iarch/powerpc/platforms/iseries
77endif 76endif
78 77
79# These are here while we do the architecture merge
80vecemu-y += ../../powerpc/kernel/vecemu.o
81vector-y += ../../powerpc/kernel/vector.o
82idle_power4-y += ../../powerpc/kernel/idle_power4.o
83traps-y += ../../powerpc/kernel/traps.o
84
85else 78else
86 79
87endif 80endif