2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
2009-09-20 18:28:22 +08:00
|
|
|
CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET)
|
|
|
|
AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2010-10-10 00:54:38 +08:00
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
2008-05-31 16:53:50 +08:00
|
|
|
CFLAGS_REMOVE_ftrace.o = -pg
|
2012-02-19 00:50:06 +08:00
|
|
|
CFLAGS_REMOVE_insn.o = -pg
|
2012-02-19 00:50:51 +08:00
|
|
|
CFLAGS_REMOVE_patch.o = -pg
|
2008-05-31 16:53:50 +08:00
|
|
|
endif
|
|
|
|
|
2009-07-21 16:56:27 +08:00
|
|
|
CFLAGS_REMOVE_return_address.o = -pg
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
# Object file lists.
|
|
|
|
|
2013-03-22 04:02:37 +08:00
|
|
|
obj-y := elf.o entry-common.o irq.o opcodes.o \
|
2013-06-02 14:39:40 +08:00
|
|
|
process.o ptrace.o return_address.o \
|
2013-08-28 13:41:57 +08:00
|
|
|
setup.o signal.o sigreturn_codes.o \
|
|
|
|
stacktrace.o sys_arm.o time.o traps.o
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2012-09-01 10:03:25 +08:00
|
|
|
obj-$(CONFIG_ATAGS) += atags_parse.o
|
|
|
|
obj-$(CONFIG_ATAGS_PROC) += atags_proc.o
|
2012-09-01 10:00:15 +08:00
|
|
|
obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += atags_compat.o
|
2010-01-19 17:13:14 +08:00
|
|
|
|
2013-03-22 04:02:37 +08:00
|
|
|
ifeq ($(CONFIG_CPU_V7M),y)
|
2013-08-28 04:15:02 +08:00
|
|
|
obj-y += entry-v7m.o v7m.o
|
2013-03-22 04:02:37 +08:00
|
|
|
else
|
|
|
|
obj-y += entry-armv.o
|
|
|
|
endif
|
|
|
|
|
2009-12-01 21:00:51 +08:00
|
|
|
obj-$(CONFIG_OC_ETM) += etm.o
|
2012-03-21 04:22:42 +08:00
|
|
|
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
|
2006-01-04 23:44:16 +08:00
|
|
|
obj-$(CONFIG_ISA_DMA_API) += dma.o
|
2011-05-23 19:22:10 +08:00
|
|
|
obj-$(CONFIG_FIQ) += fiq.o fiqasm.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_MODULES) += armksyms.o module.o
|
|
|
|
obj-$(CONFIG_ARTHUR) += arthur.o
|
|
|
|
obj-$(CONFIG_ISA_DMA) += dma-isa.o
|
2006-08-28 19:47:05 +08:00
|
|
|
obj-$(CONFIG_PCI) += bios32.o isa.o
|
2011-10-29 03:02:27 +08:00
|
|
|
obj-$(CONFIG_ARM_CPU_SUSPEND) += sleep.o suspend.o
|
2013-04-24 18:51:38 +08:00
|
|
|
obj-$(CONFIG_SMP) += smp.o
|
|
|
|
ifdef CONFIG_MMU
|
|
|
|
obj-$(CONFIG_SMP) += smp_tlb.o
|
|
|
|
endif
|
2009-05-16 18:51:14 +08:00
|
|
|
obj-$(CONFIG_HAVE_ARM_SCU) += smp_scu.o
|
2009-05-16 19:14:21 +08:00
|
|
|
obj-$(CONFIG_HAVE_ARM_TWD) += smp_twd.o
|
2012-01-12 01:25:17 +08:00
|
|
|
obj-$(CONFIG_ARM_ARCH_TIMER) += arch_timer.o
|
2012-02-19 00:50:06 +08:00
|
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o insn.o
|
|
|
|
obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o insn.o
|
2012-02-19 00:52:41 +08:00
|
|
|
obj-$(CONFIG_JUMP_LABEL) += jump_label.o insn.o patch.o
|
2007-02-07 04:29:00 +08:00
|
|
|
obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
|
2014-03-08 00:16:10 +08:00
|
|
|
obj-$(CONFIG_KPROBES) += probes.o kprobes.o kprobes-common.o patch.o
|
2011-04-20 00:56:58 +08:00
|
|
|
ifdef CONFIG_THUMB2_KERNEL
|
|
|
|
obj-$(CONFIG_KPROBES) += kprobes-thumb.o
|
|
|
|
else
|
2014-03-08 00:16:10 +08:00
|
|
|
obj-$(CONFIG_KPROBES) += kprobes-arm.o probes-arm.o
|
2011-04-20 00:56:58 +08:00
|
|
|
endif
|
2011-08-28 23:02:38 +08:00
|
|
|
obj-$(CONFIG_ARM_KPROBES_TEST) += test-kprobes.o
|
|
|
|
test-kprobes-objs := kprobes-test.o
|
2011-08-27 19:40:30 +08:00
|
|
|
ifdef CONFIG_THUMB2_KERNEL
|
|
|
|
test-kprobes-objs += kprobes-test-thumb.o
|
2011-08-27 19:41:05 +08:00
|
|
|
else
|
|
|
|
test-kprobes-objs += kprobes-test-arm.o
|
2011-08-27 19:40:30 +08:00
|
|
|
endif
|
2006-01-15 00:35:31 +08:00
|
|
|
obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o
|
2008-04-19 05:43:06 +08:00
|
|
|
obj-$(CONFIG_ARM_THUMBEE) += thumbee.o
|
2008-02-21 03:33:40 +08:00
|
|
|
obj-$(CONFIG_KGDB) += kgdb.o
|
2009-02-12 20:56:34 +08:00
|
|
|
obj-$(CONFIG_ARM_UNWIND) += unwind.o
|
2009-09-16 00:30:37 +08:00
|
|
|
obj-$(CONFIG_HAVE_TCM) += tcm.o
|
2011-04-29 04:27:20 +08:00
|
|
|
obj-$(CONFIG_OF) += devtree.o
|
2010-05-10 16:26:19 +08:00
|
|
|
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
|
2010-09-17 01:00:47 +08:00
|
|
|
obj-$(CONFIG_SWP_EMULATE) += swp_emulate.o
|
2010-11-08 18:11:19 +08:00
|
|
|
CFLAGS_swp_emulate.o := -Wa,-march=armv7-a
|
2010-09-03 17:44:33 +08:00
|
|
|
obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
|
2005-04-17 06:20:36 +08:00
|
|
|
|
[ARM] 3881/4: xscale: clean up cp0/cp1 handling
XScale cores either have a DSP coprocessor (which contains a single
40 bit accumulator register), or an iWMMXt coprocessor (which contains
eight 64 bit registers.)
Because of the small amount of state in the DSP coprocessor, access to
the DSP coprocessor (CP0) is always enabled, and DSP context switching
is done unconditionally on every task switch. Access to the iWMMXt
coprocessor (CP0/CP1) is enabled only when an iWMMXt instruction is
first issued, and iWMMXt context switching is done lazily.
CONFIG_IWMMXT is supposed to mean 'the cpu we will be running on will
have iWMMXt support', but boards are supposed to select this config
symbol by hand, and at least one pxa27x board doesn't get this right,
so on that board, proc-xscale.S will incorrectly assume that we have a
DSP coprocessor, enable CP0 on boot, and we will then only save the
first iWMMXt register (wR0) on context switches, which is Bad.
This patch redefines CONFIG_IWMMXT as 'the cpu we will be running on
might have iWMMXt support, and we will enable iWMMXt context switching
if it does.' This means that with this patch, running a CONFIG_IWMMXT=n
kernel on an iWMMXt-capable CPU will no longer potentially corrupt iWMMXt
state over context switches, and running a CONFIG_IWMMXT=y kernel on a
non-iWMMXt capable CPU will still do DSP context save/restore.
These changes should make iWMMXt work on PXA3xx, and as a side effect,
enable proper acc0 save/restore on non-iWMMXt capable xsc3 cores such
as IOP13xx and IXP23xx (which will not have CONFIG_CPU_XSCALE defined),
as well as setting and using HWCAP_IWMMXT properly.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-12-04 01:51:14 +08:00
|
|
|
obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o
|
|
|
|
obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o
|
2009-02-26 09:34:35 +08:00
|
|
|
obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o
|
2010-11-24 11:54:25 +08:00
|
|
|
obj-$(CONFIG_CPU_PJ4) += pj4-cp0.o
|
[ARM] 3881/4: xscale: clean up cp0/cp1 handling
XScale cores either have a DSP coprocessor (which contains a single
40 bit accumulator register), or an iWMMXt coprocessor (which contains
eight 64 bit registers.)
Because of the small amount of state in the DSP coprocessor, access to
the DSP coprocessor (CP0) is always enabled, and DSP context switching
is done unconditionally on every task switch. Access to the iWMMXt
coprocessor (CP0/CP1) is enabled only when an iWMMXt instruction is
first issued, and iWMMXt context switching is done lazily.
CONFIG_IWMMXT is supposed to mean 'the cpu we will be running on will
have iWMMXt support', but boards are supposed to select this config
symbol by hand, and at least one pxa27x board doesn't get this right,
so on that board, proc-xscale.S will incorrectly assume that we have a
DSP coprocessor, enable CP0 on boot, and we will then only save the
first iWMMXt register (wR0) on context switches, which is Bad.
This patch redefines CONFIG_IWMMXT as 'the cpu we will be running on
might have iWMMXt support, and we will enable iWMMXt context switching
if it does.' This means that with this patch, running a CONFIG_IWMMXT=n
kernel on an iWMMXt-capable CPU will no longer potentially corrupt iWMMXt
state over context switches, and running a CONFIG_IWMMXT=y kernel on a
non-iWMMXt capable CPU will still do DSP context save/restore.
These changes should make iWMMXt work on PXA3xx, and as a side effect,
enable proper acc0 save/restore on non-iWMMXt capable xsc3 cores such
as IOP13xx and IXP23xx (which will not have CONFIG_CPU_XSCALE defined),
as well as setting and using HWCAP_IWMMXT properly.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-12-04 01:51:14 +08:00
|
|
|
obj-$(CONFIG_IWMMXT) += iwmmxt.o
|
2013-09-26 19:36:35 +08:00
|
|
|
obj-$(CONFIG_PERF_EVENTS) += perf_regs.o
|
2012-07-29 20:09:14 +08:00
|
|
|
obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o perf_event_cpu.o
|
2005-04-17 06:20:36 +08:00
|
|
|
AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt
|
2011-08-08 20:21:59 +08:00
|
|
|
obj-$(CONFIG_ARM_CPU_TOPOLOGY) += topology.o
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_ARCH_EBSA110),y)
|
|
|
|
obj-y += io.o
|
|
|
|
endif
|
|
|
|
|
2006-04-24 16:45:35 +08:00
|
|
|
head-y := head$(MMUEXT).o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_DEBUG_LL) += debug.o
|
2009-12-09 18:02:18 +08:00
|
|
|
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2012-02-10 00:47:17 +08:00
|
|
|
obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o
|
2013-05-21 22:24:11 +08:00
|
|
|
ifeq ($(CONFIG_ARM_PSCI),y)
|
|
|
|
obj-y += psci.o
|
|
|
|
obj-$(CONFIG_SMP) += psci_smp.o
|
|
|
|
endif
|
2012-02-10 00:47:17 +08:00
|
|
|
|
2012-05-03 17:02:50 +08:00
|
|
|
extra-y := $(head-y) vmlinux.lds
|