blob: 986a1e0558348dfe2d8ef11873350918a28639ac [file] [log] [blame]
Paul Mundt83ce3ac2007-11-11 17:24:50 +09001#
2# Makefile for the Linux SuperH-specific parts of the memory manager.
3#
4
Paul Mundt185aed72008-11-12 12:53:48 +09005obj-y := init.o extable_32.o consistent.o mmap.o
Paul Mundt83ce3ac2007-11-11 17:24:50 +09006
7ifndef CONFIG_CACHE_OFF
Yoshinori Satocce2d452008-08-04 16:33:47 +09008cache-$(CONFIG_CPU_SH2) := cache-sh2.o
9cache-$(CONFIG_CPU_SH2A) := cache-sh2a.o
10cache-$(CONFIG_CPU_SH3) := cache-sh3.o
11cache-$(CONFIG_CPU_SH4) := cache-sh4.o
12cache-$(CONFIG_SH7705_CACHE_32KB) += cache-sh7705.o
Paul Mundt83ce3ac2007-11-11 17:24:50 +090013endif
14
Yoshinori Satocce2d452008-08-04 16:33:47 +090015obj-y += $(cache-y)
16
Paul Mundt83ce3ac2007-11-11 17:24:50 +090017mmu-y := tlb-nommu.o pg-nommu.o
Paul Mundt9895f942007-11-21 22:46:14 +090018mmu-$(CONFIG_MMU) := fault_32.o tlbflush_32.o ioremap_32.o
Paul Mundt83ce3ac2007-11-11 17:24:50 +090019
20obj-y += $(mmu-y)
Paul Mundta99d6fd2008-12-10 18:06:36 +090021obj-$(CONFIG_DEBUG_FS) += asids-debugfs.o
Paul Mundt83ce3ac2007-11-11 17:24:50 +090022
23ifdef CONFIG_DEBUG_FS
24obj-$(CONFIG_CPU_SH4) += cache-debugfs.o
25endif
26
27ifdef CONFIG_MMU
Paul Mundt8263a672009-03-17 17:49:49 +090028tlb-$(CONFIG_CPU_SH3) := tlb-sh3.o
29tlb-$(CONFIG_CPU_SH4) := tlb-sh4.o
30tlb-$(CONFIG_CPU_HAS_PTEAEX) := tlb-pteaex.o
31obj-y += $(tlb-y)
Paul Mundt83ce3ac2007-11-11 17:24:50 +090032ifndef CONFIG_CACHE_OFF
33obj-$(CONFIG_CPU_SH4) += pg-sh4.o
34obj-$(CONFIG_SH7705_CACHE_32KB) += pg-sh7705.o
35endif
36endif
37
38obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
39obj-$(CONFIG_PMB) += pmb.o
Yoshihiro Shimoda2f47f442009-03-10 15:49:54 +090040obj-$(CONFIG_PMB_FIXED) += pmb-fixed.o
Paul Mundt83ce3ac2007-11-11 17:24:50 +090041obj-$(CONFIG_NUMA) += numa.o
42
43EXTRA_CFLAGS += -Werror