blob: 469ff1672451047e6c14c2821166b10b1503d636 [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
28obj-$(CONFIG_CPU_SH3) += tlb-sh3.o
29obj-$(CONFIG_CPU_SH4) += tlb-sh4.o
30ifndef CONFIG_CACHE_OFF
31obj-$(CONFIG_CPU_SH4) += pg-sh4.o
32obj-$(CONFIG_SH7705_CACHE_32KB) += pg-sh7705.o
33endif
34endif
35
36obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
37obj-$(CONFIG_PMB) += pmb.o
Yoshihiro Shimoda2f47f442009-03-10 15:49:54 +090038obj-$(CONFIG_PMB_FIXED) += pmb-fixed.o
Paul Mundt83ce3ac2007-11-11 17:24:50 +090039obj-$(CONFIG_NUMA) += numa.o
40
41EXTRA_CFLAGS += -Werror