1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the Linux/LoongArch kernel. 4# 5 6extra-y := vmlinux.lds 7 8obj-y += head.o cpu-probe.o cacheinfo.o env.o setup.o entry.o genex.o \ 9 traps.o irq.o idle.o process.o dma.o mem.o io.o reset.o switch.o \ 10 elf.o syscall.o signal.o time.o topology.o inst.o ptrace.o vdso.o 11 12obj-$(CONFIG_ACPI) += acpi.o 13obj-$(CONFIG_EFI) += efi.o 14 15obj-$(CONFIG_CPU_HAS_FPU) += fpu.o 16 17obj-$(CONFIG_MODULES) += module.o module-sections.o 18obj-$(CONFIG_STACKTRACE) += stacktrace.o 19 20obj-$(CONFIG_PROC_FS) += proc.o 21 22obj-$(CONFIG_SMP) += smp.o 23 24obj-$(CONFIG_NUMA) += numa.o 25 26obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o 27 28obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o 29obj-$(CONFIG_CRASH_DUMP) += crash_dump.o 30 31obj-$(CONFIG_UNWINDER_GUESS) += unwind_guess.o 32obj-$(CONFIG_UNWINDER_PROLOGUE) += unwind_prologue.o 33 34obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_regs.o 35 36CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS) 37