2005-04-17 05:20:36 +07:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
2009-01-09 10:29:49 +07:00
|
|
|
ifdef CONFIG_DYNAMIC_FTRACE
|
|
|
|
CFLAGS_REMOVE_ftrace.o = -pg
|
|
|
|
endif
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
extra-y := head.o init_task.o vmlinux.lds
|
|
|
|
|
2010-02-26 04: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 \
|
2009-03-04 19:05:42 +07:00
|
|
|
irq_lsapic.o ivt.o machvec.o pal.o paravirt_patchlist.o patch.o process.o perfmon.o ptrace.o sal.o \
|
2008-03-08 09:55:58 +07:00
|
|
|
salinfo.o setup.o signal.o sys_ia64.o time.o traps.o unaligned.o \
|
2009-01-05 21:36:12 +07:00
|
|
|
unwind.o mca.o mca_asm.o topology.o dma-mapping.o
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2010-02-26 04:09:57 +07:00
|
|
|
obj-$(CONFIG_ACPI) += acpi.o acpi-ext.o
|
2005-04-17 05:20:36 +07:00
|
|
|
obj-$(CONFIG_IA64_BRL_EMU) += brl_emu.o
|
2005-12-02 06:16:00 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
obj-$(CONFIG_IA64_PALINFO) += palinfo.o
|
|
|
|
obj-$(CONFIG_IOSAPIC) += iosapic.o
|
|
|
|
obj-$(CONFIG_MODULES) += module.o
|
2005-09-07 05:18:14 +07:00
|
|
|
obj-$(CONFIG_SMP) += smp.o smpboot.o
|
2005-07-07 08:18:10 +07:00
|
|
|
obj-$(CONFIG_NUMA) += numa.o
|
2005-04-17 05:20:36 +07: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 14:09:28 +07:00
|
|
|
obj-$(CONFIG_KPROBES) += kprobes.o jprobes.o
|
2009-01-09 10:29:49 +07:00
|
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
|
2006-12-08 00:51:35 +07:00
|
|
|
obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o crash.o
|
2006-12-12 15:49:03 +07:00
|
|
|
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
|
2005-06-22 07:15:02 +07:00
|
|
|
obj-$(CONFIG_IA64_UNCACHED_ALLOCATOR) += uncached.o
|
2006-07-01 14:56:16 +07:00
|
|
|
obj-$(CONFIG_AUDIT) += audit.o
|
2006-10-04 16:17:00 +07:00
|
|
|
obj-$(CONFIG_PCI_MSI) += msi_ia64.o
|
2005-04-17 05:20:36 +07:00
|
|
|
mca_recovery-y += mca_drv.o mca_drv_asm.o
|
2006-12-09 07:16:24 +07:00
|
|
|
obj-$(CONFIG_IA64_MC_ERR_INJECT)+= err_inject.o
|
2010-09-24 03:52:07 +07:00
|
|
|
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2009-03-04 19:06:52 +07:00
|
|
|
obj-$(CONFIG_PARAVIRT) += paravirt.o paravirtentry.o \
|
|
|
|
paravirt_patch.o
|
2008-05-19 20:13:32 +07: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-22 01:19:22 +07:00
|
|
|
obj-$(CONFIG_IA64_ESI) += esi.o
|
|
|
|
ifneq ($(CONFIG_IA64_ESI),)
|
|
|
|
obj-y += esi_stub.o # must be in kernel proper
|
|
|
|
endif
|
2011-08-24 07:05:25 +07:00
|
|
|
obj-$(CONFIG_INTEL_IOMMU) += pci-dma.o
|
2008-10-18 02:14:13 +07: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-22 01:19:22 +07:00
|
|
|
|
2010-03-06 04:44:07 +07:00
|
|
|
obj-$(CONFIG_BINFMT_ELF) += elfcore.o
|
|
|
|
|
2005-04-17 05:20:36 +07: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 19:05:42 +07:00
|
|
|
# The gate DSO image is built using a special linker script.
|
|
|
|
include $(srctree)/arch/ia64/kernel/Makefile.gate
|
|
|
|
# tell compiled for native
|
|
|
|
CPPFLAGS_gate.lds += -D__IA64_GATE_PARAVIRTUALIZED_NATIVE
|
2008-05-19 20:13:35 +07:00
|
|
|
|
2008-05-19 20:13:40 +07: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-21 00:35:54 +07:00
|
|
|
arch/$(SRCARCH)/kernel/nr-irqs.s: arch/$(SRCARCH)/kernel/nr-irqs.c
|
2008-05-19 20:13:40 +07:00
|
|
|
$(Q)mkdir -p $(dir $@)
|
|
|
|
$(call if_changed_dep,cc_s_c)
|
|
|
|
|
2009-04-21 00:35:54 +07:00
|
|
|
include/generated/nr-irqs.h: arch/$(SRCARCH)/kernel/nr-irqs.s
|
2008-05-19 20:13:40 +07:00
|
|
|
$(Q)mkdir -p $(dir $@)
|
|
|
|
$(call cmd,nr_irqs)
|
|
|
|
|
2008-05-19 20:13:35 +07:00
|
|
|
#
|
2009-03-04 19:05:34 +07:00
|
|
|
# native ivt.S, entry.S and fsys.S
|
2008-05-19 20:13:35 +07:00
|
|
|
#
|
2009-03-04 19:05:34 +07:00
|
|
|
ASM_PARAVIRT_OBJS = ivt.o entry.o fsys.o
|
2008-05-19 20:13:35 +07:00
|
|
|
define paravirtualized_native
|
|
|
|
AFLAGS_$(1) += -D__IA64_ASM_PARAVIRTUALIZED_NATIVE
|
2008-10-17 09:18:13 +07:00
|
|
|
AFLAGS_pvchk-sed-$(1) += -D__IA64_ASM_PARAVIRTUALIZED_PVCHECK
|
|
|
|
extra-y += pvchk-$(1)
|
2008-05-19 20:13:35 +07:00
|
|
|
endef
|
|
|
|
$(foreach obj,$(ASM_PARAVIRT_OBJS),$(eval $(call paravirtualized_native,$(obj))))
|
2008-10-17 09:18:13 +07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Checker for paravirtualizations of privileged operations.
|
|
|
|
#
|
|
|
|
quiet_cmd_pv_check_sed = PVCHK $@
|
|
|
|
define cmd_pv_check_sed
|
|
|
|
sed -f $(srctree)/arch/$(SRCARCH)/scripts/pvcheck.sed $< > $@
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(obj)/pvchk-sed-%.s: $(src)/%.S $(srctree)/arch/$(SRCARCH)/scripts/pvcheck.sed FORCE
|
|
|
|
$(call if_changed_dep,as_s_S)
|
|
|
|
$(obj)/pvchk-%.s: $(obj)/pvchk-sed-%.s FORCE
|
|
|
|
$(call if_changed,pv_check_sed)
|
|
|
|
$(obj)/pvchk-%.o: $(obj)/pvchk-%.s FORCE
|
|
|
|
$(call if_changed,as_o_S)
|
|
|
|
.PRECIOUS: $(obj)/pvchk-sed-%.s $(obj)/pvchk-%.s $(obj)/pvchk-%.o
|