Makefile (233d0bc4d81ca1abf60158bd39b90be97d85840a) Makefile (f413aae96cda059635910c462ede0a8f0385897c)
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)
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)
10CFLAGS_REMOVE_return_address.o = $(CC_FLAGS_FTRACE)
11endif
12CFLAGS_syscall_table.o += $(call cc-option,-Wno-override-init,)
13CFLAGS_compat_syscall_table.o += $(call cc-option,-Wno-override-init,)
14
15ifdef CONFIG_KEXEC_CORE
16AFLAGS_kexec_relocate.o := -mcmodel=medany $(call cc-option,-mno-relax)
17endif
18

--- 15 unchanged lines hidden (view full) ---

34endif
35endif
36
37extra-y += vmlinux.lds
38
39obj-y += head.o
40obj-y += soc.o
41obj-$(CONFIG_RISCV_ALTERNATIVE) += alternative.o
10endif
11CFLAGS_syscall_table.o += $(call cc-option,-Wno-override-init,)
12CFLAGS_compat_syscall_table.o += $(call cc-option,-Wno-override-init,)
13
14ifdef CONFIG_KEXEC_CORE
15AFLAGS_kexec_relocate.o := -mcmodel=medany $(call cc-option,-mno-relax)
16endif
17

--- 15 unchanged lines hidden (view full) ---

33endif
34endif
35
36extra-y += vmlinux.lds
37
38obj-y += head.o
39obj-y += soc.o
40obj-$(CONFIG_RISCV_ALTERNATIVE) += alternative.o
42obj-y += copy-unaligned.o
43obj-y += cpu.o
44obj-y += cpufeature.o
45obj-y += entry.o
46obj-y += irq.o
47obj-y += process.o
48obj-y += ptrace.o
49obj-y += reset.o
41obj-y += cpu.o
42obj-y += cpufeature.o
43obj-y += entry.o
44obj-y += irq.o
45obj-y += process.o
46obj-y += ptrace.o
47obj-y += reset.o
50obj-y += return_address.o
51obj-y += setup.o
52obj-y += signal.o
53obj-y += syscall_table.o
54obj-y += sys_riscv.o
55obj-y += sys_hwprobe.o
56obj-y += time.o
57obj-y += traps.o
58obj-y += riscv_ksyms.o
59obj-y += stacktrace.o
60obj-y += cacheinfo.o
61obj-y += patch.o
62obj-y += probes/
63obj-y += tests/
64obj-$(CONFIG_MMU) += vdso.o vdso/
65
66obj-$(CONFIG_RISCV_MISALIGNED) += traps_misaligned.o
48obj-y += setup.o
49obj-y += signal.o
50obj-y += syscall_table.o
51obj-y += sys_riscv.o
52obj-y += sys_hwprobe.o
53obj-y += time.o
54obj-y += traps.o
55obj-y += riscv_ksyms.o
56obj-y += stacktrace.o
57obj-y += cacheinfo.o
58obj-y += patch.o
59obj-y += probes/
60obj-y += tests/
61obj-$(CONFIG_MMU) += vdso.o vdso/
62
63obj-$(CONFIG_RISCV_MISALIGNED) += traps_misaligned.o
64obj-$(CONFIG_RISCV_MISALIGNED) += unaligned_access_speed.o
65obj-$(CONFIG_RISCV_PROBE_UNALIGNED_ACCESS) += copy-unaligned.o
66
67obj-$(CONFIG_FPU) += fpu.o
68obj-$(CONFIG_RISCV_ISA_V) += vector.o
69obj-$(CONFIG_RISCV_ISA_V) += kernel_mode_vector.o
70obj-$(CONFIG_SMP) += smpboot.o
71obj-$(CONFIG_SMP) += smp.o
72obj-$(CONFIG_SMP) += cpu_ops.o
73
74obj-$(CONFIG_RISCV_BOOT_SPINWAIT) += cpu_ops_spinwait.o

--- 35 unchanged lines hidden ---
67obj-$(CONFIG_FPU) += fpu.o
68obj-$(CONFIG_RISCV_ISA_V) += vector.o
69obj-$(CONFIG_RISCV_ISA_V) += kernel_mode_vector.o
70obj-$(CONFIG_SMP) += smpboot.o
71obj-$(CONFIG_SMP) += smp.o
72obj-$(CONFIG_SMP) += cpu_ops.o
73
74obj-$(CONFIG_RISCV_BOOT_SPINWAIT) += cpu_ops_spinwait.o

--- 35 unchanged lines hidden ---