blob: 7d811d9522bc4fca5e12b035460a56337b68f13e [file] [log] [blame]
Catalin Marinas8c2c3df2012-04-20 14:45:54 +01001#
2# Makefile for the linux kernel.
3#
4
5CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET)
6AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET)
7
8# Object file lists.
9arm64-obj-y := cputable.o debug-monitors.o entry.o irq.o fpsimd.o \
10 entry-fpsimd.o process.o ptrace.o setup.o signal.o \
Marc Zyngier712c6ff2012-10-19 17:46:27 +010011 sys.o stacktrace.o time.o traps.o io.o vdso.o \
Jiang Liub11a64a2014-01-07 22:17:08 +080012 hyp-stub.o psci.o cpu_ops.o insn.o
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010013
14arm64-obj-$(CONFIG_COMPAT) += sys32.o kuser32.o signal32.o \
15 sys_compat.o
16arm64-obj-$(CONFIG_MODULES) += arm64ksyms.o module.o
Mark Brownf6e763b2014-03-04 07:51:17 +000017arm64-obj-$(CONFIG_SMP) += smp.o smp_spin_table.o topology.o
Jean Pihet2ee0d7f2014-02-03 19:18:27 +010018arm64-obj-$(CONFIG_PERF_EVENTS) += perf_regs.o
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010019arm64-obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o
Jean Pihet2ee0d7f2014-02-03 19:18:27 +010020arm64-obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
Catalin Marinas2475ff92012-10-23 14:55:08 +010021arm64-obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
Lorenzo Pieralisi166936b2013-11-07 18:37:14 +000022arm64-obj-$(CONFIG_ARM64_CPU_SUSPEND) += sleep.o suspend.o
Jiang Liu9732caf2014-01-07 22:17:13 +080023arm64-obj-$(CONFIG_JUMP_LABEL) += jump_label.o
Vijaya Kumar Kbcf57632014-01-28 16:50:18 +053024arm64-obj-$(CONFIG_KGDB) += kgdb.o
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010025
26obj-y += $(arm64-obj-y) vdso/
27obj-m += $(arm64-obj-m)
28head-y := head.o
29extra-y := $(head-y) vmlinux.lds
30
31# vDSO - this must be built first to generate the symbol offsets
32$(call objectify,$(arm64-obj-y)): $(obj)/vdso/vdso-offsets.h
33$(obj)/vdso/vdso-offsets.h: $(obj)/vdso