Back to home page

LXR

 
 

    


0001 #
0002 # Makefile for the linux kernel.
0003 #
0004 
0005 ifdef CONFIG_DYNAMIC_FTRACE
0006 CFLAGS_REMOVE_ftrace.o = -pg
0007 endif
0008 
0009 extra-y := head.o init_task.o vmlinux.lds
0010 
0011 obj-y := entry.o efi.o efi_stub.o gate-data.o fsys.o ia64_ksyms.o irq.o irq_ia64.o      \
0012          irq_lsapic.o ivt.o machvec.o pal.o patch.o process.o perfmon.o ptrace.o sal.o          \
0013          salinfo.o setup.o signal.o sys_ia64.o time.o traps.o unaligned.o \
0014          unwind.o mca.o mca_asm.o topology.o dma-mapping.o
0015 
0016 obj-$(CONFIG_ACPI)              += acpi.o acpi-ext.o
0017 obj-$(CONFIG_IA64_BRL_EMU)      += brl_emu.o
0018 
0019 obj-$(CONFIG_IA64_PALINFO)      += palinfo.o
0020 obj-$(CONFIG_IOSAPIC)           += iosapic.o
0021 obj-$(CONFIG_MODULES)           += module.o
0022 obj-$(CONFIG_SMP)               += smp.o smpboot.o
0023 obj-$(CONFIG_NUMA)              += numa.o
0024 obj-$(CONFIG_PERFMON)           += perfmon_default_smpl.o
0025 obj-$(CONFIG_IA64_CYCLONE)      += cyclone.o
0026 obj-$(CONFIG_IA64_MCA_RECOVERY) += mca_recovery.o
0027 obj-$(CONFIG_KPROBES)           += kprobes.o jprobes.o
0028 obj-$(CONFIG_DYNAMIC_FTRACE)    += ftrace.o
0029 obj-$(CONFIG_KEXEC)             += machine_kexec.o relocate_kernel.o crash.o
0030 obj-$(CONFIG_CRASH_DUMP)        += crash_dump.o
0031 obj-$(CONFIG_IA64_UNCACHED_ALLOCATOR)   += uncached.o
0032 obj-$(CONFIG_AUDIT)             += audit.o
0033 obj-$(CONFIG_PCI_MSI)           += msi_ia64.o
0034 mca_recovery-y                  += mca_drv.o mca_drv_asm.o
0035 obj-$(CONFIG_IA64_MC_ERR_INJECT)+= err_inject.o
0036 obj-$(CONFIG_STACKTRACE)        += stacktrace.o
0037 
0038 obj-$(CONFIG_IA64_ESI)          += esi.o
0039 ifneq ($(CONFIG_IA64_ESI),)
0040 obj-y                           += esi_stub.o   # must be in kernel proper
0041 endif
0042 obj-$(CONFIG_INTEL_IOMMU)       += pci-dma.o
0043 obj-$(CONFIG_SWIOTLB)           += pci-swiotlb.o
0044 
0045 obj-$(CONFIG_BINFMT_ELF)        += elfcore.o
0046 
0047 # fp_emulate() expects f2-f5,f16-f31 to contain the user-level state.
0048 CFLAGS_traps.o  += -mfixed-range=f2-f5,f16-f31
0049 
0050 # The gate DSO image is built using a special linker script.
0051 include $(src)/Makefile.gate
0052 
0053 # Calculate NR_IRQ = max(IA64_NATIVE_NR_IRQS, XEN_NR_IRQS, ...) based on config
0054 define sed-y
0055         "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"
0056 endef
0057 quiet_cmd_nr_irqs = GEN     $@
0058 define cmd_nr_irqs
0059         (set -e; \
0060          echo "#ifndef __ASM_NR_IRQS_H__"; \
0061          echo "#define __ASM_NR_IRQS_H__"; \
0062          echo "/*"; \
0063          echo " * DO NOT MODIFY."; \
0064          echo " *"; \
0065          echo " * This file was generated by Kbuild"; \
0066          echo " *"; \
0067          echo " */"; \
0068          echo ""; \
0069          sed -ne $(sed-y) $<; \
0070          echo ""; \
0071          echo "#endif" ) > $@
0072 endef
0073 
0074 # We use internal kbuild rules to avoid the "is up to date" message from make
0075 arch/$(SRCARCH)/kernel/nr-irqs.s: arch/$(SRCARCH)/kernel/nr-irqs.c
0076         $(Q)mkdir -p $(dir $@)
0077         $(call if_changed_dep,cc_s_c)
0078 
0079 include/generated/nr-irqs.h: arch/$(SRCARCH)/kernel/nr-irqs.s
0080         $(Q)mkdir -p $(dir $@)
0081         $(call cmd,nr_irqs)