aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mm/Makefile')
-rw-r--r--arch/arm/mm/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mm/Makefile b/arch/arm/mm/Makefile
index 16ce69d..b44e104 100644
--- a/arch/arm/mm/Makefile
+++ b/arch/arm/mm/Makefile
@@ -5,14 +5,30 @@
obj-y := extable.o fault.o \
iomap.o
+ifeq ($(CONFIG_SLP),y)
+obj-y += dma-mapping-slp.o init-slp.o
+else
+ifeq ($(CONFIG_DMA_CMA),y)
+obj-y += dma-mapping-cma.o init-cma.o
+else
obj-y += dma-mapping.o init.o
+endif
+endif
obj-$(CONFIG_MMU) += fault-armv.o flush.o idmap.o ioremap.o \
mmap.o pgd.o vmregion.o
ifeq ($(CONFIG_MMU),y)
+ifeq ($(CONFIG_SLP),y)
+obj-y += mmu-slp.o
+else
+ifeq ($(CONFIG_DMA_CMA),y)
+obj-y += mmu-cma.o
+else
obj-y += mmu.o
endif
+endif
+endif
ifneq ($(CONFIG_MMU),y)
obj-y += nommu.o