1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Makefile for the linux kernel.
4#
5
6CPPFLAGS_vmlinux.lds	:= -DTEXTADDR=$(TEXTADDR)
7AFLAGS_head.o		:= -DTEXTADDR=$(TEXTADDR)
8# Object file lists.
9
10obj-y			:= ex-entry.o ex-exit.o ex-scall.o irq.o \
11			process.o ptrace.o setup.o signal.o \
12			sys_nds32.o time.o traps.o cacheinfo.o \
13			dma.o syscall_table.o vdso.o
14
15obj-$(CONFIG_MODULES)		+= nds32_ksyms.o module.o
16obj-$(CONFIG_STACKTRACE)	+= stacktrace.o
17obj-$(CONFIG_FPU)		+= fpu.o
18obj-$(CONFIG_OF)		+= devtree.o
19obj-$(CONFIG_CACHE_L2)		+= atl2c.o
20obj-$(CONFIG_PERF_EVENTS) += perf_event_cpu.o
21obj-$(CONFIG_PM)		+= pm.o sleep.o
22extra-y := head.o vmlinux.lds
23
24CFLAGS_fpu.o += -mext-fpu-sp -mext-fpu-dp
25
26
27obj-y				+= vdso/
28
29obj-$(CONFIG_FUNCTION_TRACER)   += ftrace.o
30
31ifdef CONFIG_FUNCTION_TRACER
32CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
33endif
34