# SPDX-License-Identifier: GPL-2.0 # # Makefile for the linux kernel. # CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET) AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET) CFLAGS_armv8_deprecated.o := -I$(src) CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_insn.o = $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_return_address.o = $(CC_FLAGS_FTRACE) # Object file lists. obj-y := debug-monitors.o entry.o irq.o fpsimd.o \ entry-fpsimd.o process.o ptrace.o setup.o signal.o \ sys.o stacktrace.o time.o traps.o io.o vdso.o \ hyp-stub.o psci.o cpu_ops.o insn.o \ return_address.o cpuinfo.o cpu_errata.o \ cpufeature.o alternative.o cacheinfo.o \ smp.o smp_spin_table.o topology.o smccc-call.o \ syscall.o extra-$([31mCONFIG_EFI[0m) := efi-entry.o OBJCOPYFLAGS := --prefix-symbols=__efistub_ $(obj)/%.stub.o: $(obj)/%.o FORCE $(call if_changed,objcopy) obj-$([31mCONFIG_COMPAT[0m) += sys32.o signal32.o \ sys_compat.o ifneq ($([31mCONFIG_COMPAT_VDSO[0m), y) obj-$([31mCONFIG_COMPAT[0m) += sigreturn32.o endif obj-$([31mCONFIG_KUSER_HELPERS[0m) += kuser32.o obj-$([31mCONFIG_FUNCTION_TRACER[0m) += ftrace.o entry-ftrace.o obj-$([31mCONFIG_MODULES[0m) += module.o obj-$([31mCONFIG_ARM64_MODULE_PLTS[0m) += module-plts.o obj-$([31mCONFIG_PERF_EVENTS[0m) += perf_regs.o perf_callchain.o obj-$([31mCONFIG_HW_PERF_EVENTS[0m) += perf_event.o obj-$([31mCONFIG_HAVE_HW_BREAKPOINT[0m) += hw_breakpoint.o obj-$([31mCONFIG_CPU_PM[0m) += sleep.o suspend.o obj-$([31mCONFIG_CPU_IDLE[0m) += cpuidle.o obj-$([31mCONFIG_JUMP_LABEL[0m) += jump_label.o obj-$([31mCONFIG_KGDB[0m) += kgdb.o obj-$([31mCONFIG_EFI[0m) += efi.o efi-entry.stub.o \ efi-rt-wrapper.o obj-$([31mCONFIG_PCI[0m) += pci.o obj-$([31mCONFIG_ARMV8_DEPRECATED[0m) += armv8_deprecated.o obj-$([31mCONFIG_ACPI[0m) += acpi.o obj-$([31mCONFIG_ACPI_NUMA[0m) += acpi_numa.o obj-$([31mCONFIG_ARM64_ACPI_PARKING_PROTOCOL[0m) += acpi_parking_protocol.o obj-$([31mCONFIG_PARAVIRT[0m) += paravirt.o obj-$([31mCONFIG_RANDOMIZE_BASE[0m) += kaslr.o obj-$([31mCONFIG_HIBERNATION[0m) += hibernate.o hibernate-asm.o obj-$([31mCONFIG_KEXEC_CORE[0m) += machine_kexec.o relocate_kernel.o \ cpu-reset.o obj-$([31mCONFIG_KEXEC_FILE[0m) += machine_kexec_file.o kexec_image.o obj-$([31mCONFIG_ARM64_RELOC_TEST[0m) += arm64-reloc-test.o arm64-reloc-test-y := reloc_test_core.o reloc_test_syms.o obj-$([31mCONFIG_CRASH_DUMP[0m) += crash_dump.o obj-$([31mCONFIG_CRASH_CORE[0m) += crash_core.o obj-$([31mCONFIG_ARM_SDE_INTERFACE[0m) += sdei.o obj-$([31mCONFIG_ARM64_SSBD[0m) += ssbd.o obj-$([31mCONFIG_ARM64_PTR_AUTH[0m) += pointer_auth.o obj-y += vdso/ probes/ obj-$([31mCONFIG_COMPAT_VDSO[0m) += vdso32/ head-y := head.o extra-y += $(head-y) vmlinux.lds ifeq ($([31mCONFIG_DEBUG_EFI[0m),y) AFLAGS_head.o += -DVMLINUX_PATH="\"$(realpath $(objtree)/vmlinux)\"" endif |