2005-04-16 16:20:36 -06:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
2009-09-20 04:28:22 -06:00
|
|
|
CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET)
|
|
|
|
AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET)
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2008-05-31 02:53:50 -06:00
|
|
|
ifdef CONFIG_DYNAMIC_FTRACE
|
|
|
|
CFLAGS_REMOVE_ftrace.o = -pg
|
|
|
|
endif
|
|
|
|
|
2009-07-21 02:56:27 -06:00
|
|
|
CFLAGS_REMOVE_return_address.o = -pg
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
# Object file lists.
|
|
|
|
|
2008-09-07 10:16:54 -06:00
|
|
|
obj-y := compat.o elf.o entry-armv.o entry-common.o irq.o \
|
2009-07-21 02:56:27 -06:00
|
|
|
process.o ptrace.o return_address.o setup.o signal.o \
|
2007-04-28 02:59:37 -06:00
|
|
|
sys_arm.o stacktrace.o time.o traps.o
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2009-12-01 06:00:51 -07:00
|
|
|
obj-$(CONFIG_OC_ETM) += etm.o
|
|
|
|
|
2006-01-04 08:44:16 -07:00
|
|
|
obj-$(CONFIG_ISA_DMA_API) += dma.o
|
2005-04-16 16:20:36 -06:00
|
|
|
obj-$(CONFIG_ARCH_ACORN) += ecard.o
|
|
|
|
obj-$(CONFIG_FIQ) += fiq.o
|
|
|
|
obj-$(CONFIG_MODULES) += armksyms.o module.o
|
|
|
|
obj-$(CONFIG_ARTHUR) += arthur.o
|
|
|
|
obj-$(CONFIG_ISA_DMA) += dma-isa.o
|
2006-08-28 05:47:05 -06:00
|
|
|
obj-$(CONFIG_PCI) += bios32.o isa.o
|
2005-04-16 16:20:36 -06:00
|
|
|
obj-$(CONFIG_SMP) += smp.o
|
2009-05-16 04:51:14 -06:00
|
|
|
obj-$(CONFIG_HAVE_ARM_SCU) += smp_scu.o
|
2009-05-16 05:14:21 -06:00
|
|
|
obj-$(CONFIG_HAVE_ARM_TWD) += smp_twd.o
|
2008-05-31 02:53:50 -06:00
|
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
|
2007-02-06 13:29:00 -07:00
|
|
|
obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
|
2007-06-11 16:20:10 -06:00
|
|
|
obj-$(CONFIG_KPROBES) += kprobes.o kprobes-decode.o
|
2008-01-01 16:56:46 -07:00
|
|
|
obj-$(CONFIG_ATAGS_PROC) += atags.o
|
2006-01-14 09:35:31 -07:00
|
|
|
obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o
|
2008-04-18 15:43:06 -06:00
|
|
|
obj-$(CONFIG_ARM_THUMBEE) += thumbee.o
|
2008-02-20 12:33:40 -07:00
|
|
|
obj-$(CONFIG_KGDB) += kgdb.o
|
2009-02-12 05:56:34 -07:00
|
|
|
obj-$(CONFIG_ARM_UNWIND) += unwind.o
|
2009-09-15 10:30:37 -06:00
|
|
|
obj-$(CONFIG_HAVE_TCM) += tcm.o
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2006-06-27 16:03:03 -06:00
|
|
|
obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o
|
|
|
|
AFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312
|
|
|
|
|
[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-03 10:51:14 -07:00
|
|
|
obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o
|
|
|
|
obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o
|
2009-02-25 18:34:35 -07:00
|
|
|
obj-$(CONFIG_CPU_MOHAWK) += xscale-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-03 10:51:14 -07:00
|
|
|
obj-$(CONFIG_IWMMXT) += iwmmxt.o
|
2005-04-16 16:20:36 -06:00
|
|
|
AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_ARCH_EBSA110),y)
|
|
|
|
obj-y += io.o
|
|
|
|
endif
|
|
|
|
|
2006-04-24 02:45:35 -06:00
|
|
|
head-y := head$(MMUEXT).o
|
2005-04-16 16:20:36 -06:00
|
|
|
obj-$(CONFIG_DEBUG_LL) += debug.o
|
2009-12-09 03:02:18 -07:00
|
|
|
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
extra-y := $(head-y) init_task.o vmlinux.lds
|