2005-04-16 16:20:36 -06:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
2009-01-08 20:29:49 -07:00
|
|
|
ifdef CONFIG_DYNAMIC_FTRACE
|
|
|
|
CFLAGS_REMOVE_ftrace.o = -pg
|
|
|
|
endif
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
extra-y := head.o init_task.o vmlinux.lds
|
|
|
|
|
2010-02-25 14:09:52 -07:00
|
|
|
obj-y := entry.o efi.o efi_stub.o gate-data.o fsys.o ia64_ksyms.o irq.o irq_ia64.o \
|
2015-06-02 12:42:02 -06:00
|
|
|
irq_lsapic.o ivt.o machvec.o pal.o patch.o process.o perfmon.o ptrace.o sal.o \
|
2008-03-07 19:55:58 -07:00
|
|
|
salinfo.o setup.o signal.o sys_ia64.o time.o traps.o unaligned.o \
|
2009-01-05 07:36:12 -07:00
|
|
|
unwind.o mca.o mca_asm.o topology.o dma-mapping.o
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2010-02-25 14:09:57 -07:00
|
|
|
obj-$(CONFIG_ACPI) += acpi.o acpi-ext.o
|
2005-04-16 16:20:36 -06:00
|
|
|
obj-$(CONFIG_IA64_BRL_EMU) += brl_emu.o
|
2005-12-01 16:16:00 -07:00
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
obj-$(CONFIG_IA64_PALINFO) += palinfo.o
|
|
|
|
obj-$(CONFIG_IOSAPIC) += iosapic.o
|
|
|
|
obj-$(CONFIG_MODULES) += module.o
|
2005-09-06 16:18:14 -06:00
|
|
|
obj-$(CONFIG_SMP) += smp.o smpboot.o
|
2005-07-06 19:18:10 -06:00
|
|
|
obj-$(CONFIG_NUMA) += numa.o
|
2005-04-16 16:20:36 -06:00
|
|
|
obj-$(CONFIG_PERFMON) += perfmon_default_smpl.o
|
|
|
|
obj-$(CONFIG_IA64_CYCLONE) += cyclone.o
|
|
|
|
obj-$(CONFIG_IA64_MCA_RECOVERY) += mca_recovery.o
|
2005-06-23 01:09:28 -06:00
|
|
|
obj-$(CONFIG_KPROBES) += kprobes.o jprobes.o
|
2009-01-08 20:29:49 -07:00
|
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
|
2006-12-07 10:51:35 -07:00
|
|
|
obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o crash.o
|
2006-12-12 01:49:03 -07:00
|
|
|
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
|
2005-06-21 18:15:02 -06:00
|
|
|
obj-$(CONFIG_IA64_UNCACHED_ALLOCATOR) += uncached.o
|
2006-07-01 01:56:16 -06:00
|
|
|
obj-$(CONFIG_AUDIT) += audit.o
|
2006-10-04 03:17:00 -06:00
|
|
|
obj-$(CONFIG_PCI_MSI) += msi_ia64.o
|
2005-04-16 16:20:36 -06:00
|
|
|
mca_recovery-y += mca_drv.o mca_drv_asm.o
|
2006-12-08 17:16:24 -07:00
|
|
|
obj-$(CONFIG_IA64_MC_ERR_INJECT)+= err_inject.o
|
2010-09-23 14:52:07 -06:00
|
|
|
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|
2005-04-16 16:20:36 -06:00
|
|
|
|
[IA64] esi-support
Add support for making ESI calls [1]. ESI stands for "Extensible SAL
specification" and is basically a way for invoking firmware
subroutines which are identified by a GUID. I don't know whether ESI
is used by vendors other than HP (if you do, please let me know) but
as firmware "backdoors" go, this seems one of the cleaner methods, so
it seems reasonable to support it, even though I'm not aware of any
publicly documented ESI calls. I'd have liked to make the ESI module
completely stand-alone, but unfortunately that is not easily (or not
at all) possible because in order to make ESI calls in physical mode,
a small stub similar to the EFI stub is needed in the kernel proper.
I did try to create a stub that would work in user-level, but it
quickly got ugly beyond recognition (e.g., the stub had to make
assumptions about how the module-loader generated call-stubs work) and
I didn't even get it to work (that's probably fixable, but I didn't
bother because I concluded it was too ugly anyhow). While it's not
terribly elegant to have kernel code which isn't actively used in the
kernel proper, I think it might be worth making an exception here for
two reasons: the code is trivially small (all that's really needed is
esi_stub.S) and by including it in the normal kernel distro, it might
encourage other OEMs to also use ESI, which I think would be far
better than each inventing their own firmware "backdoor".
The code was originally written by Alex. I just massaged and packaged
it a bit (and perhaps messed up some things along the way...).
Changes since first version of patch that was posted to mailing list:
* Export ia64_esi_call and ia64_esi_call_phys() as GPL symbols.
* Disallow building esi.c as a module for now. Building as a module
would currently lead to an unresolved reference to "sal_lock" on SMP kernels
because that symbol doesn't get exported.
* Export esi_call_phys() only if ESI is enabled.
* Remove internal stuff from esi.h and add a "proc_type" argument to
ia64_esi_call() such that serialization-requirements can be expressed (ESI
follows SAL here, where procedure calls may have to be serialized, are
MP-safe, or MP-safe andr reentrant).
[1] h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,919,00.html
Signed-off-by: David Mosberger <David.Mosberger@acm.org>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2006-06-21 12:19:22 -06:00
|
|
|
obj-$(CONFIG_IA64_ESI) += esi.o
|
|
|
|
ifneq ($(CONFIG_IA64_ESI),)
|
|
|
|
obj-y += esi_stub.o # must be in kernel proper
|
|
|
|
endif
|
2011-08-23 18:05:25 -06:00
|
|
|
obj-$(CONFIG_INTEL_IOMMU) += pci-dma.o
|
2008-10-17 13:14:13 -06:00
|
|
|
obj-$(CONFIG_SWIOTLB) += pci-swiotlb.o
|
[IA64] esi-support
Add support for making ESI calls [1]. ESI stands for "Extensible SAL
specification" and is basically a way for invoking firmware
subroutines which are identified by a GUID. I don't know whether ESI
is used by vendors other than HP (if you do, please let me know) but
as firmware "backdoors" go, this seems one of the cleaner methods, so
it seems reasonable to support it, even though I'm not aware of any
publicly documented ESI calls. I'd have liked to make the ESI module
completely stand-alone, but unfortunately that is not easily (or not
at all) possible because in order to make ESI calls in physical mode,
a small stub similar to the EFI stub is needed in the kernel proper.
I did try to create a stub that would work in user-level, but it
quickly got ugly beyond recognition (e.g., the stub had to make
assumptions about how the module-loader generated call-stubs work) and
I didn't even get it to work (that's probably fixable, but I didn't
bother because I concluded it was too ugly anyhow). While it's not
terribly elegant to have kernel code which isn't actively used in the
kernel proper, I think it might be worth making an exception here for
two reasons: the code is trivially small (all that's really needed is
esi_stub.S) and by including it in the normal kernel distro, it might
encourage other OEMs to also use ESI, which I think would be far
better than each inventing their own firmware "backdoor".
The code was originally written by Alex. I just massaged and packaged
it a bit (and perhaps messed up some things along the way...).
Changes since first version of patch that was posted to mailing list:
* Export ia64_esi_call and ia64_esi_call_phys() as GPL symbols.
* Disallow building esi.c as a module for now. Building as a module
would currently lead to an unresolved reference to "sal_lock" on SMP kernels
because that symbol doesn't get exported.
* Export esi_call_phys() only if ESI is enabled.
* Remove internal stuff from esi.h and add a "proc_type" argument to
ia64_esi_call() such that serialization-requirements can be expressed (ESI
follows SAL here, where procedure calls may have to be serialized, are
MP-safe, or MP-safe andr reentrant).
[1] h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,919,00.html
Signed-off-by: David Mosberger <David.Mosberger@acm.org>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2006-06-21 12:19:22 -06:00
|
|
|
|
2010-03-05 14:44:07 -07:00
|
|
|
obj-$(CONFIG_BINFMT_ELF) += elfcore.o
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
# fp_emulate() expects f2-f5,f16-f31 to contain the user-level state.
|
|
|
|
CFLAGS_traps.o += -mfixed-range=f2-f5,f16-f31
|
|
|
|
|
2009-03-04 05:05:42 -07:00
|
|
|
# The gate DSO image is built using a special linker script.
|
2015-03-27 05:43:38 -06:00
|
|
|
include $(src)/Makefile.gate
|
2008-05-19 07:13:35 -06:00
|
|
|
|
2008-05-19 07:13:40 -06:00
|
|
|
# Calculate NR_IRQ = max(IA64_NATIVE_NR_IRQS, XEN_NR_IRQS, ...) based on config
|
|
|
|
define sed-y
|
|
|
|
"/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"
|
|
|
|
endef
|
|
|
|
quiet_cmd_nr_irqs = GEN $@
|
|
|
|
define cmd_nr_irqs
|
|
|
|
(set -e; \
|
|
|
|
echo "#ifndef __ASM_NR_IRQS_H__"; \
|
|
|
|
echo "#define __ASM_NR_IRQS_H__"; \
|
|
|
|
echo "/*"; \
|
|
|
|
echo " * DO NOT MODIFY."; \
|
|
|
|
echo " *"; \
|
|
|
|
echo " * This file was generated by Kbuild"; \
|
|
|
|
echo " *"; \
|
|
|
|
echo " */"; \
|
|
|
|
echo ""; \
|
|
|
|
sed -ne $(sed-y) $<; \
|
|
|
|
echo ""; \
|
|
|
|
echo "#endif" ) > $@
|
|
|
|
endef
|
|
|
|
|
|
|
|
# We use internal kbuild rules to avoid the "is up to date" message from make
|
2009-04-20 11:35:54 -06:00
|
|
|
arch/$(SRCARCH)/kernel/nr-irqs.s: arch/$(SRCARCH)/kernel/nr-irqs.c
|
2008-05-19 07:13:40 -06:00
|
|
|
$(Q)mkdir -p $(dir $@)
|
|
|
|
$(call if_changed_dep,cc_s_c)
|
|
|
|
|
2009-04-20 11:35:54 -06:00
|
|
|
include/generated/nr-irqs.h: arch/$(SRCARCH)/kernel/nr-irqs.s
|
2008-05-19 07:13:40 -06:00
|
|
|
$(Q)mkdir -p $(dir $@)
|
|
|
|
$(call cmd,nr_irqs)
|