1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 2387181dcSAnup Patel 3387181dcSAnup PatelCFLAGS_init.o := -mcmodel=medany 4387181dcSAnup Patelifdef CONFIG_FTRACE 567d94577SGuo RenCFLAGS_REMOVE_init.o = $(CC_FLAGS_FTRACE) 65ad84adfSGuo RenCFLAGS_REMOVE_cacheflush.o = $(CC_FLAGS_FTRACE) 7387181dcSAnup Patelendif 8387181dcSAnup Patel 920d38f7cSTobias KlauserKCOV_INSTRUMENT_init.o := n 1020d38f7cSTobias Klauser 11fbe934d6SPalmer Dabbeltobj-y += init.o 12fbe934d6SPalmer Dabbeltobj-y += extable.o 13d3ab332aSZong Liobj-$(CONFIG_MMU) += fault.o pageattr.o 1408f051edSAndrew Watermanobj-y += cacheflush.o 15f6635f87SGary Guoobj-y += context.o 169e953cdaSAlexandre Ghiti 1795594cb4SChristoph Hellwigifeq ($(CONFIG_MMU),y) 1895594cb4SChristoph Hellwigobj-$(CONFIG_SMP) += tlbflush.o 1995594cb4SChristoph Hellwigendif 209e953cdaSAlexandre Ghitiobj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o 2159c4da86SZong Liobj-$(CONFIG_PTDUMP_CORE) += ptdump.o 228ad8b727SNick Huobj-$(CONFIG_KASAN) += kasan_init.o 238ad8b727SNick Hu 248ad8b727SNick Huifdef CONFIG_KASAN 258ad8b727SNick HuKASAN_SANITIZE_kasan_init.o := n 268ad8b727SNick HuKASAN_SANITIZE_init.o := n 27*c648c4bbSAlexandre Ghitiifdef CONFIG_DEBUG_VIRTUAL 28*c648c4bbSAlexandre GhitiKASAN_SANITIZE_physaddr.o := n 29*c648c4bbSAlexandre Ghitiendif 308ad8b727SNick Huendif 316435f773SZong Li 326435f773SZong Liobj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o 33