blob: 3787b61f7d2022a72cbcbb20eb115c39b86ed8d5 [file] [log] [blame]
Paul Mackerras14cf11a2005-09-26 16:04:21 +10001#
2# Makefile for the linux ppc-specific parts of the memory manager.
3#
4
Michael Ellermanba55bd72009-06-09 20:48:51 +00005subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
6
matt mooney4108d9b2010-09-22 20:51:09 +00007ccflags-$(CONFIG_PPC64) := -mno-minimal-toc
Stephen Rothwell3a5f8c52005-10-11 19:40:20 +10008
Benjamin Herrenschmidt9e5efaa2009-03-10 17:24:37 +00009obj-y := fault.o mem.o pgtable.o gup.o \
Stephen Rothwell2578bfa2007-09-21 10:16:20 +100010 init_$(CONFIG_WORD_SIZE).o \
Benjamin Herrenschmidt5e696612008-12-18 19:13:24 +000011 pgtable_$(CONFIG_WORD_SIZE).o
Benjamin Herrenschmidt2a4aca112008-12-18 19:13:42 +000012obj-$(CONFIG_PPC_MMU_NOHASH) += mmu_context_nohash.o tlb_nohash.o \
13 tlb_nohash_low.o
Benjamin Herrenschmidt2d27cfd2009-07-23 23:15:59 +000014obj-$(CONFIG_PPC_BOOK3E) += tlb_low_$(CONFIG_WORD_SIZE)e.o
Benjamin Herrenschmidt94491682009-06-02 21:17:45 +000015obj-$(CONFIG_PPC64) += mmap_64.o
16hash64-$(CONFIG_PPC_NATIVE) := hash_native_64.o
17obj-$(CONFIG_PPC_STD_MMU_64) += hash_utils_64.o \
Nick Piggince0ad7f2008-07-30 15:23:13 +100018 slb_low.o slb.o stab.o \
Benjamin Herrenschmidt94491682009-06-02 21:17:45 +000019 mmap_64.o $(hash64-y)
Stephen Rothwell2578bfa2007-09-21 10:16:20 +100020obj-$(CONFIG_PPC_STD_MMU_32) += ppc_mmu_32.o
21obj-$(CONFIG_PPC_STD_MMU) += hash_low_$(CONFIG_WORD_SIZE).o \
Benjamin Herrenschmidt5e696612008-12-18 19:13:24 +000022 tlb_hash$(CONFIG_WORD_SIZE).o \
23 mmu_context_hash$(CONFIG_WORD_SIZE).o
Jimi Xenidis9d670282011-09-29 10:55:12 +000024obj-$(CONFIG_PPC_ICSWX) += icswx.o
25obj-$(CONFIG_PPC_ICSWX_PID) += icswx_pid.o
Josh Boyer15f65272007-08-20 07:27:07 -050026obj-$(CONFIG_40x) += 40x_mmu.o
Paul Mackerras14cf11a2005-09-26 16:04:21 +100027obj-$(CONFIG_44x) += 44x_mmu.o
Kumar Gala55fd7662009-10-16 18:48:40 -050028obj-$(CONFIG_PPC_FSL_BOOK3E) += fsl_booke_mmu.o
Paul Mackerrasab1f9da2005-10-10 21:58:35 +100029obj-$(CONFIG_NEED_MULTIPLE_NODES) += numa.o
Benjamin Herrenschmidtd0f13e32007-05-08 16:27:27 +100030obj-$(CONFIG_PPC_MM_SLICES) += slice.o
David Gibson883a3e52009-10-26 19:24:31 +000031ifeq ($(CONFIG_HUGETLB_PAGE),y)
32obj-y += hugetlbpage.o
33obj-$(CONFIG_PPC_STD_MMU_64) += hugetlbpage-hash64.o
Becky Bruce41151e72011-06-28 09:54:48 +000034obj-$(CONFIG_PPC_BOOK3E_MMU) += hugetlbpage-book3e.o
David Gibson883a3e52009-10-26 19:24:31 +000035endif
Paul Mackerrasfa282372008-01-24 08:35:13 +110036obj-$(CONFIG_PPC_SUBPAGE_PROT) += subpage-prot.o
Benjamin Herrenschmidtb16e7762009-05-27 13:36:10 +100037obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-noncoherent.o
Benjamin Herrenschmidt850f6ac2009-06-18 19:25:00 +000038obj-$(CONFIG_HIGHMEM) += highmem.o