Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 2 | # |
| 3 | # Makefile for the linux ppc-specific parts of the memory manager. |
| 4 | # |
| 5 | |
Anton Blanchard | 1fbe9cf | 2012-11-26 17:41:08 +0000 | [diff] [blame] | 6 | ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) |
Stephen Rothwell | 3a5f8c5 | 2005-10-11 19:40:20 +1000 | [diff] [blame] | 7 | |
Aneesh Kumar K.V | b30e759 | 2014-11-05 21:57:41 +0530 | [diff] [blame] | 8 | obj-y := fault.o mem.o pgtable.o mmap.o \ |
Christophe Leroy | 9b081e1 | 2016-12-07 08:47:24 +0100 | [diff] [blame] | 9 | init_$(BITS).o pgtable_$(BITS).o \ |
Nathan Fontenot | 6c6ea53 | 2017-12-01 10:47:08 -0600 | [diff] [blame] | 10 | init-common.o mmu_context.o drmem.o |
Benjamin Herrenschmidt | 2a4aca11 | 2008-12-18 19:13:42 +0000 | [diff] [blame] | 11 | obj-$(CONFIG_PPC_MMU_NOHASH) += mmu_context_nohash.o tlb_nohash.o \ |
| 12 | tlb_nohash_low.o |
Michael Ellerman | 68201fb | 2016-08-11 16:03:14 +1000 | [diff] [blame] | 13 | obj-$(CONFIG_PPC_BOOK3E) += tlb_low_$(BITS)e.o |
Aneesh Kumar K.V | eee24b5 | 2016-04-29 23:25:44 +1000 | [diff] [blame] | 14 | obj-$(CONFIG_PPC_BOOK3E_64) += pgtable-book3e.o |
Christophe Leroy | 17312f2 | 2019-03-29 10:00:01 +0000 | [diff] [blame^] | 15 | obj-$(CONFIG_PPC_BOOK3S_32) += book3s32/ |
Christophe Leroy | 47d9994 | 2019-03-29 10:00:00 +0000 | [diff] [blame] | 16 | obj-$(CONFIG_PPC_BOOK3S_64) += book3s64/ |
| 17 | obj-$(CONFIG_PPC_BOOK3S_64) += pgtable-frag.o |
Christophe Leroy | 32ea4c1 | 2018-11-29 14:07:01 +0000 | [diff] [blame] | 18 | obj-$(CONFIG_PPC32) += pgtable-frag.o |
Josh Boyer | 15f6527 | 2007-08-20 07:27:07 -0500 | [diff] [blame] | 19 | obj-$(CONFIG_40x) += 40x_mmu.o |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 20 | obj-$(CONFIG_44x) += 44x_mmu.o |
Christophe Leroy | a372acf | 2016-02-09 17:07:50 +0100 | [diff] [blame] | 21 | obj-$(CONFIG_PPC_8xx) += 8xx_mmu.o |
Kumar Gala | 55fd766 | 2009-10-16 18:48:40 -0500 | [diff] [blame] | 22 | obj-$(CONFIG_PPC_FSL_BOOK3E) += fsl_booke_mmu.o |
Paul Mackerras | ab1f9da | 2005-10-10 21:58:35 +1000 | [diff] [blame] | 23 | obj-$(CONFIG_NEED_MULTIPLE_NODES) += numa.o |
Benjamin Herrenschmidt | d0f13e3 | 2007-05-08 16:27:27 +1000 | [diff] [blame] | 24 | obj-$(CONFIG_PPC_MM_SLICES) += slice.o |
David Gibson | 883a3e5 | 2009-10-26 19:24:31 +0000 | [diff] [blame] | 25 | obj-y += hugetlbpage.o |
Rodrigo R. Galvao | badf436 | 2018-08-06 13:42:03 -0300 | [diff] [blame] | 26 | ifdef CONFIG_HUGETLB_PAGE |
Becky Bruce | 41151e7 | 2011-06-28 09:54:48 +0000 | [diff] [blame] | 27 | obj-$(CONFIG_PPC_BOOK3E_MMU) += hugetlbpage-book3e.o |
David Gibson | 883a3e5 | 2009-10-26 19:24:31 +0000 | [diff] [blame] | 28 | endif |
Benjamin Herrenschmidt | b16e776 | 2009-05-27 13:36:10 +1000 | [diff] [blame] | 29 | obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-noncoherent.o |
Benjamin Herrenschmidt | 850f6ac3 | 2009-06-18 19:25:00 +0000 | [diff] [blame] | 30 | obj-$(CONFIG_HIGHMEM) += highmem.o |
Ian Munsie | e83d016 | 2014-10-08 19:54:50 +1100 | [diff] [blame] | 31 | obj-$(CONFIG_PPC_COPRO_BASE) += copro_fault.o |
Christophe Leroy | e66c320 | 2019-02-18 12:28:36 +0000 | [diff] [blame] | 32 | obj-$(CONFIG_PPC_PTDUMP) += ptdump/ |
Andrew Donnellan | fb0b0a7 | 2019-02-22 11:40:46 +1100 | [diff] [blame] | 33 | |
| 34 | # Disable kcov instrumentation on sensitive code |
| 35 | # This is necessary for booting with kcov enabled on book3e machines |
| 36 | KCOV_INSTRUMENT_tlb_nohash.o := n |
| 37 | KCOV_INSTRUMENT_fsl_booke_mmu.o := n |