xref: /openbmc/linux/arch/loongarch/kernel/Makefile (revision 46859ac8)
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
18fa96b57cSHuacai Chen
19fa96b57cSHuacai Chenobj-$(CONFIG_PROC_FS)		+= proc.o
20fa96b57cSHuacai Chen
21*46859ac8SHuacai Chenobj-$(CONFIG_SMP)		+= smp.o
22*46859ac8SHuacai Chen
23fa96b57cSHuacai ChenCPPFLAGS_vmlinux.lds		:= $(KBUILD_CFLAGS)
24