diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-29 23:51:25 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-01 04:51:12 -0400 |
commit | bd142b70a6bd5522f7d95f0cec06091b93bb0715 (patch) | |
tree | 7982cf5585a88680e0ac55e71f0009790a5cb68b /arch | |
parent | dc1c1ca3dcd94c545c5e01d7c06b46824d43f4d0 (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/Makefile | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/Makefile | 11 | ||||
-rw-r--r-- | arch/ppc64/Makefile | 2 | ||||
-rw-r--r-- | arch/ppc64/kernel/Makefile | 11 |
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 | ||
122 | ifeq ($(CONFIG_PPC32),y) | 122 | ifeq ($(CONFIG_PPC32),y) |
123 | head-$(CONFIG_6xx) += arch/powerpc/kernel/idle_6xx.o | 123 | head-$(CONFIG_6xx) += arch/powerpc/kernel/idle_6xx.o |
124 | head-$(CONFIG_POWER4) += arch/powerpc/kernel/idle_power4.o | ||
125 | head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o | 124 | head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o |
126 | endif | 125 | endif |
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 | ||
5 | ifeq ($(CONFIG_PPC64),y) | ||
6 | EXTRA_CFLAGS += -mno-minimal-toc | ||
7 | endif | ||
8 | |||
5 | extra-$(CONFIG_PPC_STD_MMU) := head.o | 9 | extra-$(CONFIG_PPC_STD_MMU) := head.o |
6 | extra_$(CONFIG_PPC64) := head_64.o | 10 | extra_$(CONFIG_PPC64) := head_64.o |
7 | extra-$(CONFIG_40x) := head_4xx.o | 11 | extra-$(CONFIG_40x) := head_4xx.o |
@@ -9,10 +13,13 @@ extra-$(CONFIG_44x) := head_44x.o | |||
9 | extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o | 13 | extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o |
10 | extra-$(CONFIG_8xx) := head_8xx.o | 14 | extra-$(CONFIG_8xx) := head_8xx.o |
11 | extra-$(CONFIG_6xx) += idle_6xx.o | 15 | extra-$(CONFIG_6xx) += idle_6xx.o |
12 | extra-$(CONFIG_POWER4) += idle_power4.o | ||
13 | extra-$(CONFIG_PPC_FPU) += fpu.o | 16 | extra-$(CONFIG_PPC_FPU) += fpu.o |
14 | extra-y += vmlinux.lds | 17 | extra-y += vmlinux.lds |
15 | 18 | ||
16 | obj-y := semaphore.o traps.o process.o | 19 | obj-y := traps.o |
20 | obj-$(CONFIG_PPC32) += semaphore.o process.o | ||
21 | obj-$(CONFIG_PPC64) += idle_power4.o | ||
22 | ifeq ($(CONFIG_PPC32),y) | ||
17 | obj-$(CONFIG_MODULES) += ppc_ksyms.o | 23 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
24 | endif | ||
18 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o | 25 | obj-$(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) | |||
82 | head-y := arch/ppc64/kernel/head.o | 82 | head-y := arch/ppc64/kernel/head.o |
83 | 83 | ||
84 | libs-y += arch/ppc64/lib/ | 84 | libs-y += arch/ppc64/lib/ |
85 | core-y += arch/ppc64/kernel/ | 85 | core-y += arch/ppc64/kernel/ arch/powerpc/kernel/ |
86 | core-y += arch/ppc64/mm/ | 86 | core-y += arch/ppc64/mm/ |
87 | core-y += arch/powerpc/platforms/ | 87 | core-y += arch/powerpc/platforms/ |
88 | core-$(CONFIG_XMON) += arch/ppc64/xmon/ | 88 | core-$(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) | |||
7 | EXTRA_CFLAGS += -mno-minimal-toc | 7 | EXTRA_CFLAGS += -mno-minimal-toc |
8 | extra-y := head.o vmlinux.lds | 8 | extra-y := head.o vmlinux.lds |
9 | 9 | ||
10 | obj-y := setup.o entry.o traps.o irq.o idle.o dma.o \ | 10 | obj-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 |
17 | obj-y += vdso32/ vdso64/ | 17 | obj-y += vdso32/ vdso64/ |
18 | 18 | ||
@@ -66,7 +66,6 @@ obj-$(CONFIG_PPC_BPA) += pSeries_smp.o | |||
66 | obj-$(CONFIG_PPC_MAPLE) += smp-tbsync.o | 66 | obj-$(CONFIG_PPC_MAPLE) += smp-tbsync.o |
67 | endif | 67 | endif |
68 | 68 | ||
69 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o | ||
70 | obj-$(CONFIG_KPROBES) += kprobes.o | 69 | obj-$(CONFIG_KPROBES) += kprobes.o |
71 | 70 | ||
72 | CFLAGS_ioctl32.o += -Ifs/ | 71 | CFLAGS_ioctl32.o += -Ifs/ |
@@ -76,12 +75,6 @@ arch/ppc64/kernel/head.o: arch/powerpc/platforms/iseries/lparmap.s | |||
76 | AFLAGS_head.o += -Iarch/powerpc/platforms/iseries | 75 | AFLAGS_head.o += -Iarch/powerpc/platforms/iseries |
77 | endif | 76 | endif |
78 | 77 | ||
79 | # These are here while we do the architecture merge | ||
80 | vecemu-y += ../../powerpc/kernel/vecemu.o | ||
81 | vector-y += ../../powerpc/kernel/vector.o | ||
82 | idle_power4-y += ../../powerpc/kernel/idle_power4.o | ||
83 | traps-y += ../../powerpc/kernel/traps.o | ||
84 | |||
85 | else | 78 | else |
86 | 79 | ||
87 | endif | 80 | endif |