mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 21:50:53 +07:00
a18082575c
This patch support the static function tracer. On nds32 ABI, we need to always push return address to stack for __builtin_return_address can work correctly, otherwise, it will get the wrong value of $lp at leaf function. Signed-off-by: Zong Li <zong@andestech.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
30 lines
650 B
Makefile
30 lines
650 B
Makefile
#
|
|
# Makefile for the linux kernel.
|
|
#
|
|
|
|
CPPFLAGS_vmlinux.lds := -DTEXTADDR=$(TEXTADDR)
|
|
AFLAGS_head.o := -DTEXTADDR=$(TEXTADDR)
|
|
|
|
# Object file lists.
|
|
|
|
obj-y := ex-entry.o ex-exit.o ex-scall.o irq.o \
|
|
process.o ptrace.o setup.o signal.o \
|
|
sys_nds32.o time.o traps.o cacheinfo.o \
|
|
dma.o syscall_table.o vdso.o
|
|
|
|
obj-$(CONFIG_MODULES) += nds32_ksyms.o module.o
|
|
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|
|
obj-$(CONFIG_OF) += devtree.o
|
|
obj-$(CONFIG_CACHE_L2) += atl2c.o
|
|
|
|
extra-y := head.o vmlinux.lds
|
|
|
|
|
|
obj-y += vdso/
|
|
|
|
obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o
|
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
|
CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
|
|
endif
|