1 # SPDX-License-Identifier: GPL-2.0 << 2 # 1 # 3 # Makefile for the linux kernel. 2 # Makefile for the linux kernel. 4 # 3 # 5 4 6 CFLAGS_armv8_deprecated.o := -I$(src) !! 5 extra-$(CONFIG_AMIGA) := head.o >> 6 extra-$(CONFIG_ATARI) := head.o >> 7 extra-$(CONFIG_MAC) := head.o >> 8 extra-$(CONFIG_APOLLO) := head.o >> 9 extra-$(CONFIG_VME) := head.o >> 10 extra-$(CONFIG_HP300) := head.o >> 11 extra-$(CONFIG_Q40) := head.o >> 12 extra-$(CONFIG_SUN3X) := head.o >> 13 extra-$(CONFIG_SUN3) := sun3-head.o >> 14 extra-y += vmlinux.lds >> 15 >> 16 obj-y := entry.o irq.o m68k_ksyms.o module.o process.o ptrace.o >> 17 obj-y += setup.o signal.o sys_m68k.o syscalltable.o time.o traps.o >> 18 >> 19 obj-$(CONFIG_MMU_MOTOROLA) += ints.o vectors.o >> 20 obj-$(CONFIG_MMU_SUN3) += ints.o vectors.o >> 21 obj-$(CONFIG_PCI) += pcibios.o 7 22 8 CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) !! 23 obj-$(CONFIG_HAS_DMA) += dma.o 9 CFLAGS_REMOVE_insn.o = $(CC_FLAGS_FTRACE) << 10 CFLAGS_REMOVE_return_address.o = $(CC_FLAGS_FT << 11 24 12 # Remove stack protector to avoid triggering u << 13 # checks due to randomize_kstack_offset. << 14 CFLAGS_REMOVE_syscall.o = -fstack-protector - << 15 CFLAGS_syscall.o += -fno-stack-protecto << 16 << 17 # When KASAN is enabled, a stack trace is reco << 18 # can significantly impact performance. Avoid << 19 # collection code to minimize this impact. << 20 KASAN_SANITIZE_stacktrace.o := n << 21 << 22 # It's not safe to invoke KCOV when portions o << 23 # available or are out-of-sync with HW state. << 24 # inhibit KCOV instrumentation, disable it for << 25 KCOV_INSTRUMENT_entry-common.o := n << 26 KCOV_INSTRUMENT_idle.o := n << 27 << 28 # Object file lists. << 29 obj-y := debug-monitors.o en << 30 entry-common.o entr << 31 setup.o signal.o sy << 32 io.o vdso.o hyp-stu << 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 << 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.