1 # SPDX-License-Identifier: GPL-2.0-only !! 1 # $Id: Makefile,v 1.38 2000/12/15 00:41:22 davem Exp $ 2 !! 2 # Makefile for the linux Sparc-specific parts of the memory manager. 3 CFLAGS_init.o := -mcmodel=medany !! 3 # 4 ifdef CONFIG_RELOCATABLE !! 4 # Note! Dependencies are done automagically by 'make dep', which also 5 CFLAGS_init.o += -fno-pie !! 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 # Note 2! The CFLAGS definition is now in the main makefile... >> 9 >> 10 .S.o: >> 11 $(CC) $(AFLAGS) -ansi -c -o $*.o $< >> 12 >> 13 O_TARGET := mm.o >> 14 obj-y := fault.o init.o loadmmu.o generic.o extable.o btfixup.o >> 15 >> 16 ifeq ($(CONFIG_SUN4),y) >> 17 obj-y += nosrmmu.o >> 18 else >> 19 obj-y += srmmu.o iommu.o io-unit.o hypersparc.o viking.o \ >> 20 tsunami.o swift.o 6 endif 21 endif 7 22 8 ifdef CONFIG_FTRACE !! 23 ifdef CONFIG_HIGHMEM 9 CFLAGS_REMOVE_init.o = $(CC_FLAGS_FTRACE) !! 24 obj-y += highmem.o 10 CFLAGS_REMOVE_cacheflush.o = $(CC_FLAGS_FTRACE << 11 endif 25 endif 12 26 13 KCOV_INSTRUMENT_init.o := n !! 27 ifdef CONFIG_SMP 14 !! 28 obj-y += nosun4c.o 15 obj-y += init.o !! 29 else 16 obj-$(CONFIG_MMU) += extable.o fault.o pageatt !! 30 obj-y += sun4c.o 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 31 endif 32 32 33 obj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o !! 33 include $(TOPDIR)/Rules.make 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.