xref: /openbmc/linux/arch/loongarch/kernel/Makefile (revision dea2df3c)
1fa96b57cSHuacai Chen# SPDX-License-Identifier: GPL-2.0
2fa96b57cSHuacai Chen#
3fa96b57cSHuacai Chen# Makefile for the Linux/LoongArch kernel.
4fa96b57cSHuacai Chen#
5fa96b57cSHuacai Chen
6fa96b57cSHuacai Chenextra-y		:= head.o vmlinux.lds
7fa96b57cSHuacai Chen
8fa96b57cSHuacai Chenobj-y		+= cpu-probe.o cacheinfo.o env.o setup.o entry.o genex.o \
9fa96b57cSHuacai Chen		   traps.o irq.o idle.o process.o dma.o mem.o io.o reset.o switch.o \
10fa96b57cSHuacai Chen		   elf.o syscall.o signal.o time.o topology.o inst.o ptrace.o vdso.o
11fa96b57cSHuacai Chen
12fa96b57cSHuacai Chenobj-$(CONFIG_ACPI)		+= acpi.o
13fa96b57cSHuacai Chenobj-$(CONFIG_EFI) 		+= efi.o
14fa96b57cSHuacai Chen
15fa96b57cSHuacai Chenobj-$(CONFIG_CPU_HAS_FPU)	+= fpu.o
16fa96b57cSHuacai Chen
17fa96b57cSHuacai Chenobj-$(CONFIG_MODULES)		+= module.o module-sections.o
1893a4fa62SQing Zhangobj-$(CONFIG_STACKTRACE)	+= stacktrace.o
19fa96b57cSHuacai Chen
20fa96b57cSHuacai Chenobj-$(CONFIG_PROC_FS)		+= proc.o
21fa96b57cSHuacai Chen
2246859ac8SHuacai Chenobj-$(CONFIG_SMP)		+= smp.o
2346859ac8SHuacai Chen
24d4b6f156SHuacai Chenobj-$(CONFIG_NUMA)		+= numa.o
25d4b6f156SHuacai Chen
26*dea2df3cSHuacai Chenobj-$(CONFIG_MAGIC_SYSRQ)	+= sysrq.o
27*dea2df3cSHuacai Chen
2849232773SQing Zhangobj-$(CONFIG_UNWINDER_GUESS)	+= unwind_guess.o
2949aef111SQing Zhangobj-$(CONFIG_UNWINDER_PROLOGUE) += unwind_prologue.o
3049232773SQing Zhang
31b37042b2SHuacai Chenobj-$(CONFIG_PERF_EVENTS)	+= perf_event.o perf_regs.o
32b37042b2SHuacai Chen
33fa96b57cSHuacai ChenCPPFLAGS_vmlinux.lds		:= $(KBUILD_CFLAGS)
34