1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 >> 2 2 # 3 # 3 # Makefile for the linux kernel. 4 # Makefile for the linux kernel. 4 # 5 # 5 6 6 extra-y += vmlinux.lds !! 7 asflags-y := -ansi 7 8 8 CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) !! 9 # Undefine sparc when processing vmlinux.lds - it is used >> 10 # And teach CPP we are doing $(BITS) builds (for this case) >> 11 CPPFLAGS_vmlinux.lds := -Usparc -m$(BITS) >> 12 extra-y += vmlinux.lds 9 13 10 ifdef CONFIG_FUNCTION_TRACER 14 ifdef CONFIG_FUNCTION_TRACER 11 # Do not profile debug and lowlevel utilities 15 # Do not profile debug and lowlevel utilities 12 CFLAGS_REMOVE_tsc.o = -pg !! 16 CFLAGS_REMOVE_ftrace.o := -pg 13 CFLAGS_REMOVE_paravirt-spinlocks.o = -pg !! 17 CFLAGS_REMOVE_time_$(BITS).o := -pg 14 CFLAGS_REMOVE_pvclock.o = -pg !! 18 CFLAGS_REMOVE_perf_event.o := -pg 15 CFLAGS_REMOVE_kvmclock.o = -pg !! 19 CFLAGS_REMOVE_pcr.o := -pg 16 CFLAGS_REMOVE_ftrace.o = -pg << 17 CFLAGS_REMOVE_early_printk.o = -pg << 18 CFLAGS_REMOVE_head64.o = -pg << 19 CFLAGS_REMOVE_head32.o = -pg << 20 CFLAGS_REMOVE_rethook.o = -pg << 21 endif 20 endif 22 21 23 KASAN_SANITIZE_head$(BITS).o !! 22 obj-y := head_$(BITS).o 24 KASAN_SANITIZE_dumpstack.o !! 23 obj-$(CONFIG_SPARC64) += urtt_fill.o 25 KASAN_SANITIZE_dumpstack_$(BITS).o !! 24 obj-$(CONFIG_SPARC32) += entry.o wof.o wuf.o 26 KASAN_SANITIZE_stacktrace.o !! 25 obj-$(CONFIG_SPARC32) += etrap_32.o 27 KASAN_SANITIZE_paravirt.o !! 26 obj-$(CONFIG_SPARC32) += rtrap_32.o 28 !! 27 obj-y += traps_$(BITS).o 29 # With some compiler versions the generated co !! 28 30 # by several compilation units. To be safe, di !! 29 # IRQ 31 KCSAN_SANITIZE := n !! 30 obj-y += irq_$(BITS).o 32 KMSAN_SANITIZE_head$(BITS).o !! 31 obj-$(CONFIG_SPARC32) += sun4m_irq.o sun4d_irq.o 33 KMSAN_SANITIZE_nmi.o !! 32 34 !! 33 obj-y += process_$(BITS).o 35 # If instrumentation of the following files is !! 34 obj-y += process.o 36 # first second. !! 35 obj-y += signal_$(BITS).o 37 KCOV_INSTRUMENT_head$(BITS).o !! 36 obj-y += sigutil_$(BITS).o 38 # These are called from save_stack_trace() on !! 37 obj-$(CONFIG_SPARC32) += ioport.o 39 # and produce large amounts of uninteresting c !! 38 obj-y += setup_$(BITS).o 40 KCOV_INSTRUMENT_stacktrace.o !! 39 obj-y += idprom.o 41 KCOV_INSTRUMENT_dumpstack.o !! 40 obj-y += sys_sparc_$(BITS).o 42 KCOV_INSTRUMENT_dumpstack_$(BITS).o !! 41 obj-$(CONFIG_SPARC32) += systbls_32.o 43 KCOV_INSTRUMENT_unwind_orc.o !! 42 obj-y += time_$(BITS).o 44 KCOV_INSTRUMENT_unwind_frame.o !! 43 obj-$(CONFIG_SPARC32) += windows.o 45 KCOV_INSTRUMENT_unwind_guess.o !! 44 obj-y += cpu.o 46 !! 45 obj-$(CONFIG_SPARC64) += vdso.o 47 CFLAGS_irq.o := -I $(src)/../include/asm/trace !! 46 obj-$(CONFIG_SPARC32) += devices.o 48 !! 47 obj-y += ptrace_$(BITS).o 49 obj-y += head_$(BITS).o !! 48 obj-y += unaligned_$(BITS).o 50 obj-y += head$(BITS).o !! 49 obj-y += una_asm_$(BITS).o 51 obj-y += ebda.o !! 50 obj-y += prom_common.o 52 obj-y += platform-quirks.o !! 51 obj-y += prom_$(BITS).o 53 obj-y += process_$(BITS).o s !! 52 obj-y += of_device_common.o 54 obj-y += traps.o idt.o irq.o !! 53 obj-y += of_device_$(BITS).o 55 obj-y += time.o ioport.o dum !! 54 obj-$(CONFIG_SPARC64) += prom_irqtrans.o 56 obj-$(CONFIG_X86_FRED) += fred.o !! 55 57 obj-$(CONFIG_MODIFY_LDT_SYSCALL) += ldt !! 56 obj-$(CONFIG_SPARC32) += leon_kernel.o 58 obj-$(CONFIG_X86_KERNEL_IBT) += ibt !! 57 obj-$(CONFIG_SPARC32) += leon_pmc.o 59 obj-y += setup.o x86_init.o !! 58 60 obj-$(CONFIG_JUMP_LABEL) += jump_label. !! 59 obj-$(CONFIG_SPARC64) += reboot.o 61 obj-$(CONFIG_IRQ_WORK) += irq_work.o !! 60 obj-$(CONFIG_SPARC64) += sysfs.o 62 obj-y += probe_roms.o !! 61 obj-$(CONFIG_SPARC64) += iommu.o iommu-common.o 63 obj-$(CONFIG_X86_32) += sys_ia32.o !! 62 obj-$(CONFIG_SPARC64) += central.o 64 obj-$(CONFIG_IA32_EMULATION) += sys_ia32.o !! 63 obj-$(CONFIG_SPARC64) += starfire.o 65 obj-$(CONFIG_X86_64) += sys_x86_64.o !! 64 obj-$(CONFIG_SPARC64) += power.o 66 obj-$(CONFIG_X86_ESPFIX64) += espfix_64.o !! 65 obj-$(CONFIG_SPARC64) += sbus.o 67 obj-$(CONFIG_SYSFS) += ksysfs.o !! 66 obj-$(CONFIG_SPARC64) += ebus.o 68 obj-y += bootflag.o e820.o !! 67 obj-$(CONFIG_SPARC64) += visemul.o 69 obj-y += pci-dma.o quirks.o !! 68 obj-$(CONFIG_SPARC64) += hvapi.o 70 obj-y += alternative.o i8253 !! 69 obj-$(CONFIG_SPARC64) += sstate.o 71 obj-y += tsc.o tsc_msr.o io_ !! 70 obj-$(CONFIG_SPARC64) += mdesc.o 72 obj-y += resource.o !! 71 obj-$(CONFIG_SPARC64) += adi_64.o 73 obj-y += irqflags.o !! 72 obj-$(CONFIG_SPARC64) += pcr.o 74 obj-y += static_call.o !! 73 obj-$(CONFIG_SPARC64) += nmi.o 75 !! 74 obj-$(CONFIG_SPARC64_SMP) += cpumap.o 76 obj-y += process.o !! 75 77 obj-y += fpu/ !! 76 obj-$(CONFIG_PCIC_PCI) += pcic.o 78 obj-y += ptrace.o !! 77 obj-$(CONFIG_LEON_PCI) += leon_pci.o 79 obj-$(CONFIG_X86_32) += tls.o !! 78 obj-$(CONFIG_SPARC_GRPCI2)+= leon_pci_grpci2.o 80 obj-$(CONFIG_IA32_EMULATION) += tls.o !! 79 obj-$(CONFIG_SPARC_GRPCI1)+= leon_pci_grpci1.o 81 obj-y += step.o !! 80 82 obj-$(CONFIG_INTEL_TXT) += tboot.o !! 81 obj-$(CONFIG_SMP) += trampoline_$(BITS).o smp_$(BITS).o 83 obj-$(CONFIG_ISA_DMA_API) += i8237.o !! 82 obj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o leon_smp.o 84 obj-y += stacktrace. !! 83 obj-$(CONFIG_SPARC64_SMP) += hvtramp.o 85 obj-y += cpu/ !! 84 86 obj-y += acpi/ !! 85 obj-y += auxio_$(BITS).o 87 obj-y += reboot.o !! 86 obj-$(CONFIG_SUN_PM) += apc.o pmc.o 88 obj-$(CONFIG_X86_MSR) += msr.o !! 87 89 obj-$(CONFIG_X86_CPUID) += cpuid.o !! 88 obj-y += termios.o 90 obj-$(CONFIG_PCI) += early-quirk !! 89 91 apm-y := apm_32.o !! 90 obj-$(CONFIG_MODULES) += module.o 92 obj-$(CONFIG_APM) += apm.o !! 91 obj-$(CONFIG_MODULES) += sparc_ksyms.o 93 obj-$(CONFIG_SMP) += smp.o !! 92 obj-$(CONFIG_SPARC_LED) += led.o 94 obj-$(CONFIG_SMP) += smpboot.o !! 93 obj-$(CONFIG_KGDB) += kgdb_$(BITS).o 95 obj-$(CONFIG_X86_TSC) += tsc_sync.o << 96 obj-$(CONFIG_SMP) += setup_percp << 97 obj-$(CONFIG_X86_MPPARSE) += mpparse.o << 98 obj-y += apic/ << 99 obj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixu << 100 obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o << 101 obj-$(CONFIG_FUNCTION_TRACER) += ftrace_$(BI << 102 obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace. << 103 obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o << 104 obj-$(CONFIG_X86_TSC) += trace_clock << 105 obj-$(CONFIG_TRACING) += trace.o << 106 obj-$(CONFIG_RETHOOK) += rethook.o << 107 obj-$(CONFIG_VMCORE_INFO) += vmcore_info << 108 obj-$(CONFIG_KEXEC_CORE) += machine_kex << 109 obj-$(CONFIG_KEXEC_CORE) += relocate_ke << 110 obj-$(CONFIG_KEXEC_FILE) += kexec-bzima << 111 obj-$(CONFIG_CRASH_DUMP) += crash_dump_ << 112 obj-y += kprobes/ << 113 obj-$(CONFIG_MODULES) += module.o << 114 obj-$(CONFIG_X86_32) += doublefault << 115 obj-$(CONFIG_KGDB) += kgdb.o << 116 obj-$(CONFIG_VM86) += vm86_32.o << 117 obj-$(CONFIG_EARLY_PRINTK) += early_print << 118 << 119 obj-$(CONFIG_HPET_TIMER) += hpet.o << 120 << 121 obj-$(CONFIG_AMD_NB) += amd_nb.o << 122 obj-$(CONFIG_DEBUG_NMI_SELFTEST) += nmi_selfte << 123 << 124 obj-$(CONFIG_KVM_GUEST) += kvm.o kvmcl << 125 obj-$(CONFIG_PARAVIRT) += paravirt.o << 126 obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= paravirt-sp << 127 obj-$(CONFIG_PARAVIRT_CLOCK) += pvclock.o << 128 obj-$(CONFIG_X86_PMEM_LEGACY_DEVICE) += pmem.o << 129 << 130 obj-$(CONFIG_JAILHOUSE_GUEST) += jailhouse.o << 131 94 132 obj-$(CONFIG_EISA) += eisa.o !! 95 obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o 133 obj-$(CONFIG_PCSPKR_PLATFORM) += pcspeaker.o !! 96 obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o 134 << 135 obj-$(CONFIG_X86_CHECK_BIOS_CORRUPTION) += che << 136 << 137 obj-$(CONFIG_OF) += dev << 138 obj-$(CONFIG_UPROBES) += upr << 139 << 140 obj-$(CONFIG_PERF_EVENTS) += per << 141 obj-$(CONFIG_TRACING) += tra << 142 obj-$(CONFIG_SCHED_MC_PRIO) += itm << 143 obj-$(CONFIG_X86_UMIP) += umi << 144 97 145 obj-$(CONFIG_UNWINDER_ORC) += unw !! 98 obj-$(CONFIG_EARLYFB) += btext.o 146 obj-$(CONFIG_UNWINDER_FRAME_POINTER) += unw !! 99 obj-$(CONFIG_STACKTRACE) += stacktrace.o 147 obj-$(CONFIG_UNWINDER_GUESS) += unw !! 100 # sparc64 PCI >> 101 obj-$(CONFIG_SPARC64_PCI) += pci.o pci_common.o psycho_common.o >> 102 obj-$(CONFIG_SPARC64_PCI) += pci_psycho.o pci_sabre.o pci_schizo.o >> 103 obj-$(CONFIG_SPARC64_PCI) += pci_sun4v.o pci_sun4v_asm.o pci_fire.o >> 104 obj-$(CONFIG_SPARC64_PCI_MSI) += pci_msi.o 148 105 149 obj-$(CONFIG_CFI_CLANG) += cfi << 150 106 151 obj-$(CONFIG_CALL_THUNKS) += cal !! 107 obj-$(CONFIG_COMPAT) += sys32.o sys_sparc32.o signal32.o 152 108 153 obj-$(CONFIG_X86_CET) += cet !! 109 obj-$(CONFIG_US3_MC) += chmc.o 154 110 155 obj-$(CONFIG_X86_USER_SHADOW_STACK) += shs !! 111 obj-$(CONFIG_KPROBES) += kprobes.o >> 112 obj-$(CONFIG_SUN_LDOMS) += ldc.o vio.o viohs.o ds.o 156 113 157 ### !! 114 obj-$(CONFIG_AUDIT) += audit.o 158 # 64 bit specific files !! 115 audit--$(CONFIG_AUDIT) := compat_audit.o 159 ifeq ($(CONFIG_X86_64),y) !! 116 obj-$(CONFIG_COMPAT) += $(audit--y) 160 obj-$(CONFIG_AUDIT) += aud << 161 117 162 obj-$(CONFIG_GART_IOMMU) += amd !! 118 pc--$(CONFIG_PERF_EVENTS) := perf_event.o >> 119 obj-$(CONFIG_SPARC64) += $(pc--y) 163 120 164 obj-$(CONFIG_MMCONF_FAM10H) += mmc !! 121 obj-$(CONFIG_UPROBES) += uprobes.o 165 obj-y += vsm !! 122 obj-$(CONFIG_JUMP_LABEL) += jump_label.o 166 endif <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.