1 # SPDX-License-Identifier: GPL-2.0-only !! 1 # >> 2 # Makefile for the Linux/MIPS-specific parts of the memory manager. >> 3 # >> 4 # Note! Dependencies are done automagically by 'make dep', which also >> 5 # removes any old dependencies. DON'T put your own dependencies here >> 6 # unless it's something special (ie not a .c file). >> 7 # >> 8 >> 9 USE_STANDARD_AS_RULE := true >> 10 >> 11 O_TARGET := mm.o >> 12 >> 13 export-objs := cache.o ioremap.o loadmmu.o remap.o \ >> 14 tlb-r4k.o tlb-sb1.o >> 15 obj-y += cache.o extable.o init.o ioremap.o fault.o \ >> 16 loadmmu.o >> 17 >> 18 obj-$(CONFIG_CPU_R3000) += pg-r4k.o c-r3k.o tlb-r3k.o tlbex-r3k.o >> 19 obj-$(CONFIG_CPU_TX39XX) += pg-r4k.o c-tx39.o tlb-r3k.o tlbex-r3k.o >> 20 obj-$(CONFIG_CPU_TX49XX) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 21 obj-$(CONFIG_CPU_R4300) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 22 obj-$(CONFIG_CPU_R4X00) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 23 obj-$(CONFIG_CPU_VR41XX) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 24 obj-$(CONFIG_CPU_R5000) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 25 obj-$(CONFIG_CPU_NEVADA) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 26 obj-$(CONFIG_CPU_R5432) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 27 obj-$(CONFIG_CPU_RM7000) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 28 obj-$(CONFIG_CPU_RM9000) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 29 obj-$(CONFIG_CPU_R10000) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 30 obj-$(CONFIG_CPU_MIPS32) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-mips32.o >> 31 obj-$(CONFIG_CPU_MIPS64) += pg-r4k.o c-r4k.o tlb-r4k.o tlbex-r4k.o >> 32 obj-$(CONFIG_CPU_SB1) += pg-sb1.o c-sb1.o tlb-sb1.o tlbex-r4k.o \ >> 33 cex-sb1.o cerr-sb1.o >> 34 >> 35 obj-$(CONFIG_64BIT_PHYS_ADDR) += remap.o >> 36 obj-$(CONFIG_RM7000_CPU_SCACHE) += sc-rm7k.o >> 37 obj-$(CONFIG_R5000_CPU_SCACHE) += sc-r5k.o >> 38 obj-$(CONFIG_SGI_IP22) += sc-ip22.o 2 39 3 CFLAGS_init.o := -mcmodel=medany !! 40 include $(TOPDIR)/Rules.make 4 ifdef CONFIG_RELOCATABLE << 5 CFLAGS_init.o += -fno-pie << 6 endif << 7 << 8 ifdef CONFIG_FTRACE << 9 CFLAGS_REMOVE_init.o = $(CC_FLAGS_FTRACE) << 10 CFLAGS_REMOVE_cacheflush.o = $(CC_FLAGS_FTRACE << 11 endif << 12 << 13 KCOV_INSTRUMENT_init.o := n << 14 << 15 obj-y += init.o << 16 obj-$(CONFIG_MMU) += extable.o fault.o pageatt << 17 obj-y += cacheflush.o << 18 obj-y += context.o << 19 obj-y += pmem.o << 20 << 21 obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o << 22 obj-$(CONFIG_PTDUMP_CORE) += ptdump.o << 23 obj-$(CONFIG_KASAN) += kasan_init.o << 24 << 25 ifdef CONFIG_KASAN << 26 KASAN_SANITIZE_kasan_init.o := n << 27 KASAN_SANITIZE_init.o := n << 28 ifdef CONFIG_DEBUG_VIRTUAL << 29 KASAN_SANITIZE_physaddr.o := n << 30 endif << 31 endif << 32 << 33 obj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o << 34 obj-$(CONFIG_RISCV_DMA_NONCOHERENT) += dma-non << 35 obj-$(CONFIG_RISCV_NONSTANDARD_CACHE_OPS) += c <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.