# SPDX-License-Identifier: GPL-2.0 # # Makefile for the Linux/SuperH kernel. # extra-y := head_$(BITS).o vmlinux.lds ifdef [31mCONFIG_FUNCTION_TRACER[0m # Do not profile debug and lowlevel utilities CFLAGS_REMOVE_ftrace.o = -pg endif CFLAGS_REMOVE_return_address.o = -pg obj-y := debugtraps.o dumpstack.o \ idle.o io.o irq.o irq_$(BITS).o kdebugfs.o \ machvec.o nmi_debug.o process.o \ process_$(BITS).o ptrace.o ptrace_$(BITS).o \ reboot.o return_address.o \ setup.o signal_$(BITS).o sys_sh.o \ syscalls_$(BITS).o time.o topology.o traps.o \ traps_$(BITS).o unwinder.o ifndef [31mCONFIG_GENERIC_IOMAP[0m obj-y += iomap.o obj-$([31mCONFIG_HAS_IOPORT_MAP[0m) += ioport.o endif obj-$([31mCONFIG_SUPERH32[0m) += sys_sh32.o obj-y += cpu/ obj-$([31mCONFIG_VSYSCALL[0m) += vsyscall/ obj-$([31mCONFIG_SMP[0m) += smp.o obj-$([31mCONFIG_SH_STANDARD_BIOS[0m) += sh_bios.o obj-$([31mCONFIG_KGDB[0m) += kgdb.o obj-$([31mCONFIG_MODULES[0m) += sh_ksyms_$(BITS).o module.o obj-$([31mCONFIG_KEXEC[0m) += machine_kexec.o relocate_kernel.o obj-$([31mCONFIG_CRASH_DUMP[0m) += crash_dump.o obj-$([31mCONFIG_STACKTRACE[0m) += stacktrace.o obj-$([31mCONFIG_IO_TRAPPED[0m) += io_trapped.o obj-$([31mCONFIG_KPROBES[0m) += kprobes.o obj-$([31mCONFIG_DYNAMIC_FTRACE[0m) += ftrace.o obj-$([31mCONFIG_FTRACE_SYSCALLS[0m) += ftrace.o obj-$([31mCONFIG_FUNCTION_GRAPH_TRACER[0m) += ftrace.o obj-$([31mCONFIG_DUMP_CODE[0m) += disassemble.o obj-$([31mCONFIG_HIBERNATION[0m) += swsusp.o obj-$([31mCONFIG_DWARF_UNWINDER[0m) += dwarf.o obj-$([31mCONFIG_PERF_EVENTS[0m) += perf_event.o perf_callchain.o obj-$([31mCONFIG_DMA_NONCOHERENT[0m) += dma-coherent.o obj-$([31mCONFIG_HAVE_HW_BREAKPOINT[0m) += hw_breakpoint.o ccflags-y := -Werror |