aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2018-10-10 01:13:05 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2018-10-18 09:56:17 -0400
commitc47ca98d32a22a412ddbc69916cf62bdcdfa1a4e (patch)
tree7f2d46541f29e71465839ca2197ebea1d5aa8b5f
parentfc0c8b36d379a046525eacb9c3323ca635283757 (diff)
powerpc: Move core kernel logic into arch/powerpc/Kbuild
This is a nice cleanup, arch/powerpc/Makefile is long and messy so moving this out helps a little. It also allows us to do: $ make arch/powerpc Which can be helpful if you just want to compile test some changes to arch code and not link everything. Finally it also gives us a single place to do subdir-cc-flags assignments which affect the whole of arch/powerpc, which we will do in a future patch. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r--arch/powerpc/Kbuild14
-rw-r--r--arch/powerpc/Makefile14
2 files changed, 16 insertions, 12 deletions
diff --git a/arch/powerpc/Kbuild b/arch/powerpc/Kbuild
new file mode 100644
index 000000000000..690a498da050
--- /dev/null
+++ b/arch/powerpc/Kbuild
@@ -0,0 +1,14 @@
1obj-y += kernel/
2obj-y += mm/
3obj-y += lib/
4obj-y += sysdev/
5obj-y += platforms/
6obj-y += math-emu/
7obj-y += crypto/
8obj-y += net/
9
10obj-$(CONFIG_XMON) += xmon/
11obj-$(CONFIG_KVM) += kvm/
12
13obj-$(CONFIG_PERF_EVENTS) += perf/
14obj-$(CONFIG_KEXEC_FILE) += purgatory/
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 6c4f8a099bbb..a1cae0377d9e 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -273,18 +273,8 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o
273head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o 273head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o
274head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o 274head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o
275 275
276core-y += arch/powerpc/kernel/ \ 276# See arch/powerpc/Kbuild for content of core part of the kernel
277 arch/powerpc/mm/ \ 277core-y += arch/powerpc/
278 arch/powerpc/lib/ \
279 arch/powerpc/sysdev/ \
280 arch/powerpc/platforms/ \
281 arch/powerpc/math-emu/ \
282 arch/powerpc/crypto/ \
283 arch/powerpc/net/
284core-$(CONFIG_XMON) += arch/powerpc/xmon/
285core-$(CONFIG_KVM) += arch/powerpc/kvm/
286core-$(CONFIG_PERF_EVENTS) += arch/powerpc/perf/
287core-$(CONFIG_KEXEC_FILE) += arch/powerpc/purgatory/
288 278
289drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ 279drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/
290 280