Skip to content

Commit e7e2d2d

Browse files
committed
powerpc: Don't compile in arch/ppc/kernel for 32-bit ARCH=powerpc
All of the things needed for 32-bit ARCH=powerpc builds have now moved to arch/powerpc/kernel, so we don't need to go down into arch/ppc/kernel any more, and we can remove the CONFIG_PPC_MERGE conditional from arch/ppc/kernel/Makefile. There were two files still referenced in the merge section of arch/ppc/kernel/Makefile: ppc-stub.o, depending on CONFIG_KGDB, and dma-mapping.o, depending on CONFIG_NOT_COHERENT_CACHE. None of the platforms currently in ARCH=powerpc have caches that aren't coherent with DMA, but when we do get one we'll move dma-mapping.c over. As for CONFIG_KGDB, none of the Kconfig files in the tree define it, so I'll let it languish for now. Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 8b844dd commit e7e2d2d

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

‎arch/powerpc/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ core-y += arch/powerpc/kernel/ \
129129
arch/powerpc/lib/ \
130130
arch/powerpc/sysdev/ \
131131
arch/powerpc/platforms/
132-
core-$(CONFIG_PPC32) += arch/ppc/kernel/
133132
core-$(CONFIG_MATH_EMULATION) += arch/ppc/math-emu/
134133
core-$(CONFIG_XMON) += arch/powerpc/xmon/
135134
core-$(CONFIG_APUS) += arch/ppc/amiga/

‎arch/ppc/kernel/Makefile‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#
22
# Makefile for the linux kernel.
33
#
4-
ifneq ($(CONFIG_PPC_MERGE),y)
5-
64
extra-$(CONFIG_PPC_STD_MMU) := head.o
75
extra-$(CONFIG_40x) := head_4xx.o
86
extra-$(CONFIG_44x) := head_44x.o
@@ -24,10 +22,3 @@ obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
2422
ifndef CONFIG_MATH_EMULATION
2523
obj-$(CONFIG_8xx) += softemu8xx.o
2624
endif
27-
28-
# These are here while we do the architecture merge
29-
30-
else
31-
obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-mapping.o
32-
obj-$(CONFIG_KGDB) += ppc-stub.o
33-
endif

0 commit comments

Comments
 (0)