1 # SPDX-License-Identifier: GPL-2.0-only
3 # Makefile for the linux kernel.
6 CPPFLAGS_vmlinux.lds
:= -DTEXTADDR
=$(TEXTADDR
)
7 AFLAGS_head.o
:= -DTEXTADDR
=$(TEXTADDR
)
10 obj-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
15 obj-
$(CONFIG_MODULES
) += nds32_ksyms.o module.o
16 obj-
$(CONFIG_STACKTRACE
) += stacktrace.o
17 obj-
$(CONFIG_FPU
) += fpu.o
18 obj-
$(CONFIG_OF
) += devtree.o
19 obj-
$(CONFIG_CACHE_L2
) += atl2c.o
20 obj-
$(CONFIG_PERF_EVENTS
) += perf_event_cpu.o
21 obj-
$(CONFIG_PM
) += pm.o sleep.o
22 extra-y
:= head.o vmlinux.lds
24 CFLAGS_fpu.o
+= -mext-fpu-sp
-mext-fpu-dp
29 obj-
$(CONFIG_FUNCTION_TRACER
) += ftrace.o
31 ifdef CONFIG_FUNCTION_TRACER
32 CFLAGS_REMOVE_ftrace.o
= $(CC_FLAGS_FTRACE
)