#
# Makefile for the linux kernel.
#
extra-y := head_$(BITS).o
extra-y += head$(BITS).o
extra-y += ebda.o
extra-y += platform-quirks.o
extra-y += vmlinux.lds
CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE)
ifdef [31mCONFIG_FUNCTION_TRACER[0m
# Do not profile debug and lowlevel utilities
CFLAGS_REMOVE_tsc.o = -pg
CFLAGS_REMOVE_paravirt-spinlocks.o = -pg
CFLAGS_REMOVE_pvclock.o = -pg
CFLAGS_REMOVE_kvmclock.o = -pg
CFLAGS_REMOVE_ftrace.o = -pg
CFLAGS_REMOVE_early_printk.o = -pg
endif
KASAN_SANITIZE_head$(BITS).o := n
KASAN_SANITIZE_dumpstack.o := n
KASAN_SANITIZE_dumpstack_$(BITS).o := n
KASAN_SANITIZE_stacktrace.o := n
OBJECT_FILES_NON_STANDARD_head_$(BITS).o := y
OBJECT_FILES_NON_STANDARD_relocate_kernel_$(BITS).o := y
OBJECT_FILES_NON_STANDARD_mcount_$(BITS).o := y
OBJECT_FILES_NON_STANDARD_test_nx.o := y
# If instrumentation of this dir is enabled, boot hangs during first second.
# Probably could be more selective here, but note that files related to irqs,
# boot, dumpstack/stacktrace, etc are either non-interesting or can lead to
# non-deterministic coverage.
KCOV_INSTRUMENT := n
CFLAGS_irq.o := -I$(src)/../include/asm/trace
obj-y := process_$(BITS).o signal.o
obj-$([31mCONFIG_COMPAT[0m) += signal_compat.o
obj-y += traps.o irq.o irq_$(BITS).o dumpstack_$(BITS).o
obj-y += time.o ioport.o dumpstack.o nmi.o
obj-$([31mCONFIG_MODIFY_LDT_SYSCALL[0m) += ldt.o
obj-y += setup.o x86_init.o i8259.o irqinit.o jump_label.o
obj-$([31mCONFIG_IRQ_WORK[0m) += irq_work.o
obj-y += probe_roms.o
obj-$([31mCONFIG_X86_64[0m) += sys_x86_64.o mcount_64.o
obj-$([31mCONFIG_X86_ESPFIX64[0m) += espfix_64.o
obj-$([31mCONFIG_SYSFS[0m) += ksysfs.o
obj-y += bootflag.o e820.o
obj-y += pci-dma.o quirks.o topology.o kdebugfs.o
obj-y += alternative.o i8253.o pci-nommu.o hw_breakpoint.o
obj-y += tsc.o tsc_msr.o io_delay.o rtc.o
obj-y += pci-iommu_table.o
obj-y += resource.o
obj-y += process.o
obj-y += fpu/
obj-y += ptrace.o
obj-$([31mCONFIG_X86_32[0m) += tls.o
obj-$([31mCONFIG_IA32_EMULATION[0m) += tls.o
obj-y += step.o
obj-$([31mCONFIG_INTEL_TXT[0m) += tboot.o
obj-$([31mCONFIG_ISA_DMA_API[0m) += i8237.o
obj-$([31mCONFIG_STACKTRACE[0m) += stacktrace.o
obj-y += cpu/
obj-y += acpi/
obj-y += reboot.o
obj-$([31mCONFIG_X86_MSR[0m) += msr.o
obj-$([31mCONFIG_X86_CPUID[0m) += cpuid.o
obj-$([31mCONFIG_PCI[0m) += early-quirks.o
apm-y := apm_32.o
obj-$([31mCONFIG_APM[0m) += apm.o
obj-$([31mCONFIG_SMP[0m) += smp.o
obj-$([31mCONFIG_SMP[0m) += smpboot.o
obj-$([31mCONFIG_X86_TSC[0m) += tsc_sync.o
obj-$([31mCONFIG_SMP[0m) += setup_percpu.o
obj-$([31mCONFIG_X86_MPPARSE[0m) += mpparse.o
obj-y += apic/
obj-$([31mCONFIG_X86_REBOOTFIXUPS[0m) += reboot_fixups_32.o
obj-$([31mCONFIG_DYNAMIC_FTRACE[0m) += ftrace.o
obj-$([31mCONFIG_LIVEPATCH[0m) += livepatch.o
obj-$([31mCONFIG_FUNCTION_GRAPH_TRACER[0m) += ftrace.o
obj-$([31mCONFIG_FTRACE_SYSCALLS[0m) += ftrace.o
obj-$([31mCONFIG_X86_TSC[0m) += trace_clock.o
obj-$([31mCONFIG_KEXEC_CORE[0m) += machine_kexec_$(BITS).o
obj-$([31mCONFIG_KEXEC_CORE[0m) += relocate_kernel_$(BITS).o crash.o
obj-$([31mCONFIG_KEXEC_FILE[0m) += kexec-bzimage64.o
obj-$([31mCONFIG_CRASH_DUMP[0m) += crash_dump_$(BITS).o
obj-y += kprobes/
obj-$([31mCONFIG_MODULES[0m) += module.o
obj-$([31mCONFIG_DOUBLEFAULT[0m) += doublefault.o
obj-$([31mCONFIG_KGDB[0m) += kgdb.o
obj-$([31mCONFIG_VM86[0m) += vm86_32.o
obj-$([31mCONFIG_EARLY_PRINTK[0m) += early_printk.o
obj-$([31mCONFIG_HPET_TIMER[0m) += hpet.o
obj-$([31mCONFIG_APB_TIMER[0m) += apb_timer.o
obj-$([31mCONFIG_AMD_NB[0m) += amd_nb.o
obj-$([31mCONFIG_DEBUG_RODATA_TEST[0m) += test_rodata.o
obj-$([31mCONFIG_DEBUG_NX_TEST[0m) += test_nx.o
obj-$([31mCONFIG_DEBUG_NMI_SELFTEST[0m) += nmi_selftest.o
obj-$([31mCONFIG_KVM_GUEST[0m) += kvm.o kvmclock.o
obj-$([31mCONFIG_PARAVIRT[0m) += paravirt.o paravirt_patch_$(BITS).o
obj-$([31mCONFIG_PARAVIRT_SPINLOCKS[0m)+= paravirt-spinlocks.o
obj-$([31mCONFIG_PARAVIRT_CLOCK[0m) += pvclock.o
obj-$([31mCONFIG_X86_PMEM_LEGACY_DEVICE[0m) += pmem.o
obj-$([31mCONFIG_PCSPKR_PLATFORM[0m) += pcspeaker.o
obj-$([31mCONFIG_X86_CHECK_BIOS_CORRUPTION[0m) += check.o
obj-$([31mCONFIG_SWIOTLB[0m) += pci-swiotlb.o
obj-$([31mCONFIG_OF[0m) += devicetree.o
obj-$([31mCONFIG_UPROBES[0m) += uprobes.o
obj-y += sysfb.o
obj-$([31mCONFIG_X86_SYSFB[0m) += sysfb_simplefb.o
obj-$([31mCONFIG_EFI[0m) += sysfb_efi.o
obj-$([31mCONFIG_PERF_EVENTS[0m) += perf_regs.o
obj-$([31mCONFIG_TRACING[0m) += tracepoint.o
obj-$([31mCONFIG_SCHED_MC_PRIO[0m) += itmt.o
ifdef [31mCONFIG_FRAME_POINTER[0m
obj-y += unwind_frame.o
else
obj-y += unwind_guess.o
endif
###
# 64 bit specific files
ifeq ($([31mCONFIG_X86_64[0m),y)
obj-$([31mCONFIG_AUDIT[0m) += audit_64.o
obj-$([31mCONFIG_GART_IOMMU[0m) += amd_gart_64.o aperture_64.o
obj-$([31mCONFIG_CALGARY_IOMMU[0m) += pci-calgary_64.o tce_64.o
obj-$([31mCONFIG_PCI_MMCONFIG[0m) += mmconf-fam10h_64.o
obj-y += vsmp_64.o
endif