blob: f066e76da2044fb9430c80ec2481546ad963c275 [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)
21
22ifdef CONFIG_DEBUG_FS
23obj-$(CONFIG_CPU_SH4) += cache-debugfs.o
24endif
25
26ifdef CONFIG_MMU
27obj-$(CONFIG_CPU_SH3) += tlb-sh3.o
28obj-$(CONFIG_CPU_SH4) += tlb-sh4.o
29ifndef CONFIG_CACHE_OFF
30obj-$(CONFIG_CPU_SH4) += pg-sh4.o
31obj-$(CONFIG_SH7705_CACHE_32KB) += pg-sh7705.o
32endif
33endif
34
35obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
36obj-$(CONFIG_PMB) += pmb.o
37obj-$(CONFIG_NUMA) += numa.o
38
39EXTRA_CFLAGS += -Werror