mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
387e220a2e
Compiling out hash support code when CONFIG_PPC_64S_HASH_MMU=n saves 128kB kernel image size (90kB text) on powernv_defconfig minus KVM, 350kB on pseries_defconfig minus KVM, 40kB on a tiny config. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> [mpe: Fixup defined(ARCH_HAS_MEMREMAP_COMPAT_ALIGN), which needs CONFIG. Fix radix_enabled() use in setup_initial_memory_limit(). Add some stubs to reduce number of ifdefs.] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211201144153.2456614-18-npiggin@gmail.com
15 lines
379 B
Makefile
15 lines
379 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-y += ptdump.o
|
|
|
|
obj-$(CONFIG_4xx) += shared.o
|
|
obj-$(CONFIG_PPC_8xx) += 8xx.o
|
|
obj-$(CONFIG_PPC_BOOK3E_MMU) += shared.o
|
|
obj-$(CONFIG_PPC_BOOK3S_32) += shared.o
|
|
obj-$(CONFIG_PPC_BOOK3S_64) += book3s64.o
|
|
|
|
ifdef CONFIG_PTDUMP_DEBUGFS
|
|
obj-$(CONFIG_PPC_BOOK3S_32) += bats.o segment_regs.o
|
|
obj-$(CONFIG_PPC_64S_HASH_MMU) += hashpagetable.o
|
|
endif
|