Makefile (5a94296bc02ac616336da7b5332b86d2ca8827f0) Makefile (030d6dbf0c2e5fdf23ad29557f0c87a882993e26)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Makefile for the RISC-V Linux kernel
4#
5
6ifdef CONFIG_FTRACE
7CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
8CFLAGS_REMOVE_patch.o = $(CC_FLAGS_FTRACE)
9CFLAGS_REMOVE_sbi.o = $(CC_FLAGS_FTRACE)
10endif
11CFLAGS_syscall_table.o += $(call cc-option,-Wno-override-init,)
12
13ifdef CONFIG_KEXEC
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Makefile for the RISC-V Linux kernel
4#
5
6ifdef CONFIG_FTRACE
7CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
8CFLAGS_REMOVE_patch.o = $(CC_FLAGS_FTRACE)
9CFLAGS_REMOVE_sbi.o = $(CC_FLAGS_FTRACE)
10endif
11CFLAGS_syscall_table.o += $(call cc-option,-Wno-override-init,)
12
13ifdef CONFIG_KEXEC
14AFLAGS_kexec_relocate.o := -mcmodel=medany -mno-relax
14AFLAGS_kexec_relocate.o := -mcmodel=medany $(call cc-option,-mno-relax)
15endif
16
17extra-y += head.o
18extra-y += vmlinux.lds
19
20obj-y += soc.o
21obj-y += cpu.o
22obj-y += cpufeature.o

--- 45 unchanged lines hidden ---
15endif
16
17extra-y += head.o
18extra-y += vmlinux.lds
19
20obj-y += soc.o
21obj-y += cpu.o
22obj-y += cpufeature.o

--- 45 unchanged lines hidden ---