diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-10 01:13:05 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-18 09:56:17 -0400 |
commit | c47ca98d32a22a412ddbc69916cf62bdcdfa1a4e (patch) | |
tree | 7f2d46541f29e71465839ca2197ebea1d5aa8b5f | |
parent | fc0c8b36d379a046525eacb9c3323ca635283757 (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/Kbuild | 14 | ||||
-rw-r--r-- | arch/powerpc/Makefile | 14 |
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 @@ | |||
1 | obj-y += kernel/ | ||
2 | obj-y += mm/ | ||
3 | obj-y += lib/ | ||
4 | obj-y += sysdev/ | ||
5 | obj-y += platforms/ | ||
6 | obj-y += math-emu/ | ||
7 | obj-y += crypto/ | ||
8 | obj-y += net/ | ||
9 | |||
10 | obj-$(CONFIG_XMON) += xmon/ | ||
11 | obj-$(CONFIG_KVM) += kvm/ | ||
12 | |||
13 | obj-$(CONFIG_PERF_EVENTS) += perf/ | ||
14 | obj-$(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 | |||
273 | head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o | 273 | head-$(CONFIG_ALTIVEC) += arch/powerpc/kernel/vector.o |
274 | head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o | 274 | head-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += arch/powerpc/kernel/prom_init.o |
275 | 275 | ||
276 | core-y += arch/powerpc/kernel/ \ | 276 | # See arch/powerpc/Kbuild for content of core part of the kernel |
277 | arch/powerpc/mm/ \ | 277 | core-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/ | ||
284 | core-$(CONFIG_XMON) += arch/powerpc/xmon/ | ||
285 | core-$(CONFIG_KVM) += arch/powerpc/kvm/ | ||
286 | core-$(CONFIG_PERF_EVENTS) += arch/powerpc/perf/ | ||
287 | core-$(CONFIG_KEXEC_FILE) += arch/powerpc/purgatory/ | ||
288 | 278 | ||
289 | drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ | 279 | drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ |
290 | 280 | ||