blob: 3510503bc5e688bb123503778c3e2118f1855817 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# Makefile for the linux arm-specific parts of the memory manager.
4#
5
Vladimir Murzin1c51c422017-05-24 11:24:30 +01006obj-y := extable.o fault.o init.o iomap.o
7obj-y += dma-mapping$(MMUEXT).o
Russell King614dd052010-11-21 11:41:57 +00008obj-$(CONFIG_MMU) += fault-armv.o flush.o idmap.o ioremap.o \
Jungseung Lee4e802cf2014-11-29 03:02:11 +01009 mmap.o pgd.o mmu.o pageattr.o
Linus Walleijd5d44e72020-10-25 23:50:09 +010010KASAN_SANITIZE_mmu.o := n
Russell King59244862006-06-22 15:05:36 +010011
12ifneq ($(CONFIG_MMU),y)
13obj-y += nommu.o
Vladimir Murzin046835b2018-04-03 10:39:23 +010014obj-$(CONFIG_ARM_MPU) += pmsa-v7.o pmsa-v8.o
Russell King59244862006-06-22 15:05:36 +010015endif
16
Jinbum Park4fb69cc2017-12-12 01:41:09 +010017obj-$(CONFIG_ARM_PTDUMP_CORE) += dump.o
18obj-$(CONFIG_ARM_PTDUMP_DEBUGFS) += ptdump_debugfs.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070019obj-$(CONFIG_MODULES) += proc-syms.o
Linus Walleijd5d44e72020-10-25 23:50:09 +010020KASAN_SANITIZE_physaddr.o := n
Florian Fainellie377cd82017-01-15 03:59:00 +010021obj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
23obj-$(CONFIG_ALIGNMENT_TRAP) += alignment.o
Catalin Marinas1355e2a2012-07-25 14:32:38 +010024obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
Russell Kingd8dc7fb2015-04-04 16:58:38 +010025obj-$(CONFIG_ARM_PV_FIXUP) += pv-fixup-asm.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Hyok S. Choi0f45d7f2006-09-28 21:46:16 +090027obj-$(CONFIG_CPU_ABRT_NOMMU) += abort-nommu.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070028obj-$(CONFIG_CPU_ABRT_EV4) += abort-ev4.o
29obj-$(CONFIG_CPU_ABRT_EV4T) += abort-ev4t.o
30obj-$(CONFIG_CPU_ABRT_LV4T) += abort-lv4t.o
31obj-$(CONFIG_CPU_ABRT_EV5T) += abort-ev5t.o
32obj-$(CONFIG_CPU_ABRT_EV5TJ) += abort-ev5tj.o
33obj-$(CONFIG_CPU_ABRT_EV6) += abort-ev6.o
Catalin Marinas23688e992007-05-08 22:45:26 +010034obj-$(CONFIG_CPU_ABRT_EV7) += abort-ev7.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070035
Russell Kingaff7b4f2010-01-12 19:02:05 +000036AFLAGS_abort-ev6.o :=-Wa,-march=armv6k
37AFLAGS_abort-ev7.o :=-Wa,-march=armv7-a
38
Kirill A. Shutemov4fb28472009-09-25 13:39:47 +010039obj-$(CONFIG_CPU_PABRT_LEGACY) += pabort-legacy.o
40obj-$(CONFIG_CPU_PABRT_V6) += pabort-v6.o
41obj-$(CONFIG_CPU_PABRT_V7) += pabort-v7.o
42
Linus Torvalds1da177e2005-04-16 15:20:36 -070043obj-$(CONFIG_CPU_CACHE_V4) += cache-v4.o
44obj-$(CONFIG_CPU_CACHE_V4WT) += cache-v4wt.o
45obj-$(CONFIG_CPU_CACHE_V4WB) += cache-v4wb.o
46obj-$(CONFIG_CPU_CACHE_V6) += cache-v6.o
Catalin Marinas23688e992007-05-08 22:45:26 +010047obj-$(CONFIG_CPU_CACHE_V7) += cache-v7.o
Paulius Zaleckas28853ac2009-03-25 13:10:01 +020048obj-$(CONFIG_CPU_CACHE_FA) += cache-fa.o
Uwe Kleine-König4477ca42013-03-21 21:02:37 +010049obj-$(CONFIG_CPU_CACHE_NOP) += cache-nop.o
Jonathan Austinbc0ee9d2016-08-30 17:31:22 +010050obj-$(CONFIG_CPU_CACHE_V7M) += cache-v7m.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070051
Russell Kingaff7b4f2010-01-12 19:02:05 +000052AFLAGS_cache-v6.o :=-Wa,-march=armv6
53AFLAGS_cache-v7.o :=-Wa,-march=armv7-a
Jonathan Austinbc0ee9d2016-08-30 17:31:22 +010054AFLAGS_cache-v7m.o :=-Wa,-march=armv7-m
Russell Kingaff7b4f2010-01-12 19:02:05 +000055
Linus Torvalds1da177e2005-04-16 15:20:36 -070056obj-$(CONFIG_CPU_COPY_V4WT) += copypage-v4wt.o
57obj-$(CONFIG_CPU_COPY_V4WB) += copypage-v4wb.o
Lennert Buytenhek0ed15072008-04-24 01:31:45 -040058obj-$(CONFIG_CPU_COPY_FEROCEON) += copypage-feroceon.o
Russell Kingd84b4712006-08-21 19:23:38 +010059obj-$(CONFIG_CPU_COPY_V6) += copypage-v6.o context.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070060obj-$(CONFIG_CPU_SA1100) += copypage-v4mc.o
61obj-$(CONFIG_CPU_XSCALE) += copypage-xscale.o
Lennert Buytenhek23bdf862006-03-28 21:00:40 +010062obj-$(CONFIG_CPU_XSC3) += copypage-xsc3.o
Paulius Zaleckas28853ac2009-03-25 13:10:01 +020063obj-$(CONFIG_CPU_COPY_FA) += copypage-fa.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070064
Arnd Bergmann90543ec2015-05-26 16:10:02 +010065CFLAGS_copypage-feroceon.o := -march=armv5te
66
Linus Torvalds1da177e2005-04-16 15:20:36 -070067obj-$(CONFIG_CPU_TLB_V4WT) += tlb-v4.o
68obj-$(CONFIG_CPU_TLB_V4WB) += tlb-v4wb.o
69obj-$(CONFIG_CPU_TLB_V4WBI) += tlb-v4wbi.o
Lennert Buytenhek99c6dc12008-06-22 22:45:04 +020070obj-$(CONFIG_CPU_TLB_FEROCEON) += tlb-v4wbi.o # reuse v4wbi TLB functions
Linus Torvalds1da177e2005-04-16 15:20:36 -070071obj-$(CONFIG_CPU_TLB_V6) += tlb-v6.o
Catalin Marinas2ccdd1e2007-05-18 11:25:31 +010072obj-$(CONFIG_CPU_TLB_V7) += tlb-v7.o
Paulius Zaleckas28853ac2009-03-25 13:10:01 +020073obj-$(CONFIG_CPU_TLB_FA) += tlb-fa.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070074
Russell Kingaff7b4f2010-01-12 19:02:05 +000075AFLAGS_tlb-v6.o :=-Wa,-march=armv6
76AFLAGS_tlb-v7.o :=-Wa,-march=armv7-a
77
Hyok S. Choi07e0da72006-09-26 17:37:36 +090078obj-$(CONFIG_CPU_ARM7TDMI) += proc-arm7tdmi.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070079obj-$(CONFIG_CPU_ARM720T) += proc-arm720.o
Hyok S. Choib731c312006-09-26 17:37:50 +090080obj-$(CONFIG_CPU_ARM740T) += proc-arm740.o
Hyok S. Choi43f5f012006-09-26 17:38:05 +090081obj-$(CONFIG_CPU_ARM9TDMI) += proc-arm9tdmi.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070082obj-$(CONFIG_CPU_ARM920T) += proc-arm920.o
83obj-$(CONFIG_CPU_ARM922T) += proc-arm922.o
84obj-$(CONFIG_CPU_ARM925T) += proc-arm925.o
85obj-$(CONFIG_CPU_ARM926T) += proc-arm926.o
Hyok S. Choid60674e2006-09-26 17:38:18 +090086obj-$(CONFIG_CPU_ARM940T) += proc-arm940.o
Hyok S. Choif37f46e2006-09-26 17:38:32 +090087obj-$(CONFIG_CPU_ARM946E) += proc-arm946.o
Paulius Zaleckas28853ac2009-03-25 13:10:01 +020088obj-$(CONFIG_CPU_FA526) += proc-fa526.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070089obj-$(CONFIG_CPU_ARM1020) += proc-arm1020.o
90obj-$(CONFIG_CPU_ARM1020E) += proc-arm1020e.o
91obj-$(CONFIG_CPU_ARM1022) += proc-arm1022.o
92obj-$(CONFIG_CPU_ARM1026) += proc-arm1026.o
93obj-$(CONFIG_CPU_SA110) += proc-sa110.o
94obj-$(CONFIG_CPU_SA1100) += proc-sa1100.o
95obj-$(CONFIG_CPU_XSCALE) += proc-xscale.o
Lennert Buytenhek23bdf862006-03-28 21:00:40 +010096obj-$(CONFIG_CPU_XSC3) += proc-xsc3.o
Eric Miao49cbe782009-01-20 14:15:18 +080097obj-$(CONFIG_CPU_MOHAWK) += proc-mohawk.o
Assaf Hoffmane50d6402007-10-23 15:14:41 -040098obj-$(CONFIG_CPU_FEROCEON) += proc-feroceon.o
Daniel Jacobowitza6c61e92005-11-19 10:01:07 +000099obj-$(CONFIG_CPU_V6) += proc-v6.o
Russell Kinge399b1a2011-01-17 15:08:32 +0000100obj-$(CONFIG_CPU_V6K) += proc-v6.o
Russell Kinge388b802018-05-10 13:09:54 +0100101obj-$(CONFIG_CPU_V7) += proc-v7.o proc-v7-bugs.o
Uwe Kleine-König4477ca42013-03-21 21:02:37 +0100102obj-$(CONFIG_CPU_V7M) += proc-v7m.o
Catalin Marinas382266a2007-02-05 14:48:19 +0100103
Russell Kingaff7b4f2010-01-12 19:02:05 +0000104AFLAGS_proc-v6.o :=-Wa,-march=armv6
105AFLAGS_proc-v7.o :=-Wa,-march=armv7-a
106
Russell King1f1d5b72014-03-16 13:14:38 +0000107obj-$(CONFIG_OUTER_CACHE) += l2c-common.o
Florian Fainellif6f9be12017-12-01 01:10:09 +0100108obj-$(CONFIG_CACHE_B15_RAC) += cache-b15-rac.o
Lennert Buytenhek99c6dc12008-06-22 22:45:04 +0200109obj-$(CONFIG_CACHE_FEROCEON_L2) += cache-feroceon-l2.o
Russell Kingde7e7532014-04-05 11:39:57 +0100110obj-$(CONFIG_CACHE_L2X0) += cache-l2x0.o l2c-l2x0-resume.o
Mark Rutlandb828f962016-09-02 10:35:18 +0100111obj-$(CONFIG_CACHE_L2X0_PMU) += cache-l2x0-pmu.o
Eric Miao20072fd2008-06-06 16:34:03 +0800112obj-$(CONFIG_CACHE_XSC3L2) += cache-xsc3l2.o
Lennert Buytenhek573a6522009-11-24 19:33:52 +0200113obj-$(CONFIG_CACHE_TAUROS2) += cache-tauros2.o
Masahiro Yamadae7ecbc02015-10-02 13:42:19 +0900114obj-$(CONFIG_CACHE_UNIPHIER) += cache-uniphier.o
Linus Walleij5615f692020-10-25 23:55:16 +0100115
116KASAN_SANITIZE_kasan_init.o := n
117obj-$(CONFIG_KASAN) += kasan_init.o