Makefile (93c0651617a62a69717299f1464dda798af8bebb) | Makefile (7383ee05314be58f8f9f018ee0ac53bef3808aea) |
---|---|
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 $(call cc-option,-mno-relax) 15endif 16 | 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 $(call cc-option,-mno-relax) 15endif 16 |
17# cmodel=medany and notrace when patching early 18ifdef CONFIG_RISCV_ALTERNATIVE_EARLY 19CFLAGS_alternative.o := -mcmodel=medany 20CFLAGS_cpufeature.o := -mcmodel=medany 21ifdef CONFIG_FTRACE 22CFLAGS_REMOVE_alternative.o = $(CC_FLAGS_FTRACE) 23CFLAGS_REMOVE_cpufeature.o = $(CC_FLAGS_FTRACE) 24endif 25ifdef CONFIG_KASAN 26KASAN_SANITIZE_alternative.o := n 27KASAN_SANITIZE_cpufeature.o := n 28endif 29endif 30 | |
31extra-y += head.o 32extra-y += vmlinux.lds 33 34obj-y += soc.o | 17extra-y += head.o 18extra-y += vmlinux.lds 19 20obj-y += soc.o |
35obj-$(CONFIG_RISCV_ALTERNATIVE) += alternative.o | |
36obj-y += cpu.o 37obj-y += cpufeature.o 38obj-y += entry.o 39obj-y += irq.o 40obj-y += process.o 41obj-y += ptrace.o 42obj-y += reset.o 43obj-y += setup.o --- 35 unchanged lines hidden (view full) --- 79obj-$(CONFIG_HOTPLUG_CPU) += cpu-hotplug.o 80obj-$(CONFIG_KGDB) += kgdb.o 81obj-$(CONFIG_KEXEC) += kexec_relocate.o crash_save_regs.o machine_kexec.o 82obj-$(CONFIG_CRASH_DUMP) += crash_dump.o 83 84obj-$(CONFIG_JUMP_LABEL) += jump_label.o 85 86obj-$(CONFIG_EFI) += efi.o | 21obj-y += cpu.o 22obj-y += cpufeature.o 23obj-y += entry.o 24obj-y += irq.o 25obj-y += process.o 26obj-y += ptrace.o 27obj-y += reset.o 28obj-y += setup.o --- 35 unchanged lines hidden (view full) --- 64obj-$(CONFIG_HOTPLUG_CPU) += cpu-hotplug.o 65obj-$(CONFIG_KGDB) += kgdb.o 66obj-$(CONFIG_KEXEC) += kexec_relocate.o crash_save_regs.o machine_kexec.o 67obj-$(CONFIG_CRASH_DUMP) += crash_dump.o 68 69obj-$(CONFIG_JUMP_LABEL) += jump_label.o 70 71obj-$(CONFIG_EFI) += efi.o |
72obj-$(CONFIG_COMPAT) += compat_syscall_table.o 73obj-$(CONFIG_COMPAT) += compat_signal.o 74obj-$(CONFIG_COMPAT) += compat_vdso/ |
|