2005-04-17 05:20:36 +07:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
2009-09-20 17:28:22 +07:00
|
|
|
CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET)
|
|
|
|
AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET)
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2010-10-09 23:54:38 +07:00
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
2008-05-31 15:53:50 +07:00
|
|
|
CFLAGS_REMOVE_ftrace.o = -pg
|
2012-02-18 23:50:06 +07:00
|
|
|
CFLAGS_REMOVE_insn.o = -pg
|
2012-02-18 23:50:51 +07:00
|
|
|
CFLAGS_REMOVE_patch.o = -pg
|
2008-05-31 15:53:50 +07:00
|
|
|
endif
|
|
|
|
|
2009-07-21 15:56:27 +07:00
|
|
|
CFLAGS_REMOVE_return_address.o = -pg
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
# Object file lists.
|
|
|
|
|
2013-03-22 03:02:37 +07:00
|
|
|
obj-y := elf.o entry-common.o irq.o opcodes.o \
|
2015-04-01 23:02:45 +07:00
|
|
|
process.o ptrace.o reboot.o return_address.o \
|
2013-08-28 12:41:57 +07:00
|
|
|
setup.o signal.o sigreturn_codes.o \
|
|
|
|
stacktrace.o sys_arm.o time.o traps.o
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2012-09-01 09:03:25 +07:00
|
|
|
obj-$(CONFIG_ATAGS) += atags_parse.o
|
|
|
|
obj-$(CONFIG_ATAGS_PROC) += atags_proc.o
|
2012-09-01 09:00:15 +07:00
|
|
|
obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += atags_compat.o
|
2010-01-19 16:13:14 +07:00
|
|
|
|
2013-03-22 03:02:37 +07:00
|
|
|
ifeq ($(CONFIG_CPU_V7M),y)
|
2013-08-28 03:15:02 +07:00
|
|
|
obj-y += entry-v7m.o v7m.o
|
2013-03-22 03:02:37 +07:00
|
|
|
else
|
|
|
|
obj-y += entry-armv.o
|
|
|
|
endif
|
|
|
|
|
2012-03-21 03:22:42 +07:00
|
|
|
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
|
2006-01-04 22:44:16 +07:00
|
|
|
obj-$(CONFIG_ISA_DMA_API) += dma.o
|
2011-05-23 18:22:10 +07:00
|
|
|
obj-$(CONFIG_FIQ) += fiq.o fiqasm.o
|
Revert "arm: move exports to definitions"
This reverts commit 4dd1837d7589f468ed109556513f476e7a7f9121.
Moving the exports for assembly code into the assembly files breaks
KSYM trimming, but also breaks modversions.
While fixing the KSYM trimming is trivial, fixing modversions brings
us to a technically worse position that we had prior to the above
change:
- We end up with the prototype definitions divorsed from everything
else, which means that adding or removing assembly level ksyms
become more fragile:
* if adding a new assembly ksyms export, a missed prototype in
asm-prototypes.h results in a successful build if no module in
the selected configuration makes use of the symbol.
* when removing a ksyms export, asm-prototypes.h will get forgotten,
with armksyms.c, you'll get a build error if you forget to touch
the file.
- We end up with the same amount of include files and prototypes,
they're just in a header file instead of a .c file with their
exports.
As for lines of code, we don't get much of a size reduction:
(original commit)
47 files changed, 131 insertions(+), 208 deletions(-)
(fix for ksyms trimming)
7 files changed, 18 insertions(+), 5 deletions(-)
(two fixes for modversions)
1 file changed, 34 insertions(+)
3 files changed, 7 insertions(+), 2 deletions(-)
which results in a net total of only 25 lines deleted.
As there does not seem to be much benefit from this change of approach,
revert the change.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
2016-11-23 17:00:03 +07:00
|
|
|
obj-$(CONFIG_MODULES) += armksyms.o module.o
|
2014-11-24 22:54:35 +07:00
|
|
|
obj-$(CONFIG_ARM_MODULE_PLTS) += module-plts.o
|
2005-04-17 05:20:36 +07:00
|
|
|
obj-$(CONFIG_ISA_DMA) += dma-isa.o
|
2006-08-28 18:47:05 +07:00
|
|
|
obj-$(CONFIG_PCI) += bios32.o isa.o
|
2011-10-29 02:02:27 +07:00
|
|
|
obj-$(CONFIG_ARM_CPU_SUSPEND) += sleep.o suspend.o
|
2014-03-25 07:20:29 +07:00
|
|
|
obj-$(CONFIG_HIBERNATION) += hibernate.o
|
2013-04-24 17:51:38 +07:00
|
|
|
obj-$(CONFIG_SMP) += smp.o
|
|
|
|
ifdef CONFIG_MMU
|
|
|
|
obj-$(CONFIG_SMP) += smp_tlb.o
|
|
|
|
endif
|
2009-05-16 17:51:14 +07:00
|
|
|
obj-$(CONFIG_HAVE_ARM_SCU) += smp_scu.o
|
2009-05-16 18:14:21 +07:00
|
|
|
obj-$(CONFIG_HAVE_ARM_TWD) += smp_twd.o
|
2012-01-12 00:25:17 +07:00
|
|
|
obj-$(CONFIG_ARM_ARCH_TIMER) += arch_timer.o
|
2014-10-28 20:26:48 +07:00
|
|
|
obj-$(CONFIG_FUNCTION_TRACER) += entry-ftrace.o
|
2012-02-18 23:50:06 +07:00
|
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o insn.o
|
|
|
|
obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o insn.o
|
2012-02-18 23:52:41 +07:00
|
|
|
obj-$(CONFIG_JUMP_LABEL) += jump_label.o insn.o patch.o
|
2007-02-07 03:29:00 +07:00
|
|
|
obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
|
2015-01-09 09:19:49 +07:00
|
|
|
# Main staffs in KPROBES are in arch/arm/probes/ .
|
2015-01-09 13:37:36 +07:00
|
|
|
obj-$(CONFIG_KPROBES) += patch.o insn.o
|
2006-01-14 23:35:31 +07:00
|
|
|
obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o
|
2008-04-19 04:43:06 +07:00
|
|
|
obj-$(CONFIG_ARM_THUMBEE) += thumbee.o
|
2014-04-23 05:14:51 +07:00
|
|
|
obj-$(CONFIG_KGDB) += kgdb.o patch.o
|
2009-02-12 19:56:34 +07:00
|
|
|
obj-$(CONFIG_ARM_UNWIND) += unwind.o
|
2009-09-15 23:30:37 +07:00
|
|
|
obj-$(CONFIG_HAVE_TCM) += tcm.o
|
2011-04-29 03:27:20 +07:00
|
|
|
obj-$(CONFIG_OF) += devtree.o
|
2010-05-10 15:26:19 +07:00
|
|
|
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
|
2010-09-17 00:00:47 +07:00
|
|
|
obj-$(CONFIG_SWP_EMULATE) += swp_emulate.o
|
2010-11-08 17:11:19 +07:00
|
|
|
CFLAGS_swp_emulate.o := -Wa,-march=armv7-a
|
2010-09-03 16:44:33 +07:00
|
|
|
obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
|
2005-04-17 05:20:36 +07: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 00:51:14 +07:00
|
|
|
obj-$(CONFIG_CPU_XSCALE) += xscale-cp0.o
|
|
|
|
obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o
|
2009-02-26 08:34:35 +07:00
|
|
|
obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o
|
2010-11-24 10:54:25 +07:00
|
|
|
obj-$(CONFIG_CPU_PJ4) += pj4-cp0.o
|
2014-04-25 04:58:30 +07:00
|
|
|
obj-$(CONFIG_CPU_PJ4B) += 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 00:51:14 +07:00
|
|
|
obj-$(CONFIG_IWMMXT) += iwmmxt.o
|
2014-09-29 23:15:32 +07:00
|
|
|
obj-$(CONFIG_PERF_EVENTS) += perf_regs.o perf_callchain.o
|
2015-07-06 18:23:53 +07:00
|
|
|
obj-$(CONFIG_HW_PERF_EVENTS) += perf_event_xscale.o perf_event_v6.o \
|
2015-05-26 23:23:38 +07:00
|
|
|
perf_event_v7.o
|
2005-04-17 05:20:36 +07:00
|
|
|
AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt
|
2011-08-08 19:21:59 +07:00
|
|
|
obj-$(CONFIG_ARM_CPU_TOPOLOGY) += topology.o
|
2015-03-26 01:16:05 +07:00
|
|
|
obj-$(CONFIG_VDSO) += vdso.o
|
2015-09-25 03:49:52 +07:00
|
|
|
obj-$(CONFIG_EFI) += efi.o
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_ARCH_EBSA110),y)
|
|
|
|
obj-y += io.o
|
|
|
|
endif
|
2015-11-23 17:32:57 +07:00
|
|
|
obj-$(CONFIG_PARAVIRT) += paravirt.o
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2006-04-24 15:45:35 +07:00
|
|
|
head-y := head$(MMUEXT).o
|
2005-04-17 05:20:36 +07:00
|
|
|
obj-$(CONFIG_DEBUG_LL) += debug.o
|
2009-12-09 17:02:18 +07:00
|
|
|
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2012-02-09 23:47:17 +07:00
|
|
|
obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o
|
2016-02-19 17:04:45 +07:00
|
|
|
AFLAGS_hyp-stub.o :=-Wa,-march=armv7-a
|
2013-05-21 21:24:11 +07:00
|
|
|
ifeq ($(CONFIG_ARM_PSCI),y)
|
|
|
|
obj-$(CONFIG_SMP) += psci_smp.o
|
|
|
|
endif
|
2012-02-09 23:47:17 +07:00
|
|
|
|
2016-01-04 21:42:55 +07:00
|
|
|
obj-$(CONFIG_HAVE_ARM_SMCCC) += smccc-call.o
|
|
|
|
|
2012-05-03 16:02:50 +07:00
|
|
|
extra-y := $(head-y) vmlinux.lds
|