1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 # 2 # 3 # Makefile for the linux kernel. 3 # Makefile for the linux kernel. 4 # 4 # 5 5 6 CFLAGS_armv8_deprecated.o := -I$(src) !! 6 extra-y += vmlinux.lds 7 7 8 CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) !! 8 obj-$(CONFIG_AMIGA) := head.o 9 CFLAGS_REMOVE_insn.o = $(CC_FLAGS_FTRACE) !! 9 obj-$(CONFIG_ATARI) := head.o 10 CFLAGS_REMOVE_return_address.o = $(CC_FLAGS_FT !! 10 obj-$(CONFIG_MAC) := head.o 11 !! 11 obj-$(CONFIG_APOLLO) := head.o 12 # Remove stack protector to avoid triggering u !! 12 obj-$(CONFIG_VME) := head.o 13 # checks due to randomize_kstack_offset. !! 13 obj-$(CONFIG_HP300) := head.o 14 CFLAGS_REMOVE_syscall.o = -fstack-protector - !! 14 obj-$(CONFIG_Q40) := head.o 15 CFLAGS_syscall.o += -fno-stack-protecto !! 15 obj-$(CONFIG_SUN3X) := head.o 16 !! 16 obj-$(CONFIG_VIRT) := head.o 17 # When KASAN is enabled, a stack trace is reco !! 17 obj-$(CONFIG_SUN3) := sun3-head.o 18 # can significantly impact performance. Avoid !! 18 19 # collection code to minimize this impact. !! 19 obj-y += entry.o irq.o module.o process.o ptrace.o 20 KASAN_SANITIZE_stacktrace.o := n !! 20 obj-y += setup.o signal.o sys_m68k.o syscalltable.o time.o traps.o 21 !! 21 22 # It's not safe to invoke KCOV when portions o !! 22 obj-$(CONFIG_MMU_MOTOROLA) += ints.o vectors.o 23 # available or are out-of-sync with HW state. !! 23 obj-$(CONFIG_MMU_SUN3) += ints.o vectors.o 24 # inhibit KCOV instrumentation, disable it for !! 24 obj-$(CONFIG_PCI) += pcibios.o 25 KCOV_INSTRUMENT_entry-common.o := n !! 25 26 KCOV_INSTRUMENT_idle.o := n !! 26 obj-$(CONFIG_M68K_NONCOHERENT_DMA) += dma.o 27 !! 27 28 # Object file lists. !! 28 obj-$(CONFIG_KEXEC_CORE) += machine_kexec.o relocate_kernel.o 29 obj-y := debug-monitors.o en !! 29 obj-$(CONFIG_BOOTINFO_PROC) += bootinfo_proc.o 30 entry-common.o entr !! 30 obj-$(CONFIG_UBOOT) += uboot.o 31 setup.o signal.o sy !! 31 32 io.o vdso.o hyp-stu !! 32 obj-$(CONFIG_EARLY_PRINTK) += early_printk.o 33 return_address.o cp << 34 cpufeature.o altern << 35 smp.o smp_spin_tabl << 36 syscall.o proton-pa << 37 << 38 obj-$(CONFIG_COMPAT) += sys << 39 sys << 40 obj-$(CONFIG_COMPAT) += sig << 41 obj-$(CONFIG_COMPAT_ALIGNMENT_FIXUPS) += com << 42 obj-$(CONFIG_KUSER_HELPERS) += kus << 43 obj-$(CONFIG_FUNCTION_TRACER) += ftr << 44 obj-$(CONFIG_MODULES) += mod << 45 obj-$(CONFIG_PERF_EVENTS) += per << 46 obj-$(CONFIG_HARDLOCKUP_DETECTOR_PERF) += wat << 47 obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_ << 48 obj-$(CONFIG_CPU_PM) += sle << 49 obj-$(CONFIG_JUMP_LABEL) += jum << 50 obj-$(CONFIG_KGDB) += kgd << 51 obj-$(CONFIG_EFI) += efi << 52 obj-$(CONFIG_PCI) += pci << 53 obj-$(CONFIG_ARMV8_DEPRECATED) += arm << 54 obj-$(CONFIG_ACPI) += acp << 55 obj-$(CONFIG_ACPI_NUMA) += acp << 56 obj-$(CONFIG_ARM64_ACPI_PARKING_PROTOCOL) << 57 obj-$(CONFIG_PARAVIRT) += par << 58 obj-$(CONFIG_RANDOMIZE_BASE) += kas << 59 obj-$(CONFIG_HIBERNATION) += hib << 60 obj-$(CONFIG_ELF_CORE) += elf << 61 obj-$(CONFIG_KEXEC_CORE) += mac << 62 cpu << 63 obj-$(CONFIG_KEXEC_FILE) += mac << 64 obj-$(CONFIG_ARM64_RELOC_TEST) += arm << 65 arm64-reloc-test-y := reloc_test_core.o reloc_ << 66 obj-$(CONFIG_CRASH_DUMP) += cra << 67 obj-$(CONFIG_VMCORE_INFO) += vmc << 68 obj-$(CONFIG_ARM_SDE_INTERFACE) += sde << 69 obj-$(CONFIG_ARM64_PTR_AUTH) += poi << 70 obj-$(CONFIG_ARM64_MTE) += mte << 71 obj-y += vds << 72 obj-$(CONFIG_COMPAT_VDSO) += vds << 73 << 74 # Force dependency (vdso*-wrap.S includes vdso << 75 $(obj)/vdso-wrap.o: $(obj)/vdso/vdso.so << 76 $(obj)/vdso32-wrap.o: $(obj)/vdso32/vdso.so << 77 << 78 obj-y += pro << 79 obj-y += hea << 80 extra-y += vml << 81 << 82 ifeq ($(CONFIG_DEBUG_EFI),y) << 83 AFLAGS_head.o += -DVMLINUX_PATH="\"$(realpath << 84 endif << 85 33 86 # for cleaning << 87 subdir- += vdso vdso32 <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.