mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
nds32: Fix gcc 8.0 compiler option incompatible.
When the kernel configs of ftrace and frame pointer options are choosed, the compiler option of kernel will incompatible. Error message: nds32le-linux-gcc: error: -pg and -fomit-frame-pointer are incompatible Signed-off-by: Nickhu <nickhu@andestech.com> Signed-off-by: Zong Li <zong@andestech.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
This commit is contained in:
parent
8730c178b4
commit
4c3d6174e0
@ -4,4 +4,8 @@ obj-y := extable.o tlb.o \
|
|||||||
|
|
||||||
obj-$(CONFIG_ALIGNMENT_TRAP) += alignment.o
|
obj-$(CONFIG_ALIGNMENT_TRAP) += alignment.o
|
||||||
obj-$(CONFIG_HIGHMEM) += highmem.o
|
obj-$(CONFIG_HIGHMEM) += highmem.o
|
||||||
CFLAGS_proc-n13.o += -fomit-frame-pointer
|
|
||||||
|
ifdef CONFIG_FUNCTION_TRACER
|
||||||
|
CFLAGS_REMOVE_proc.o = $(CC_FLAGS_FTRACE)
|
||||||
|
endif
|
||||||
|
CFLAGS_proc.o += -fomit-frame-pointer
|
||||||
|
Loading…
Reference in New Issue
Block a user