summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/Makefile
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.com>2016-08-30 10:31:35 +0200
committerWill Deacon <will.deacon@arm.com>2016-08-31 13:31:38 +0200
commitcfa88c79462d15098db29edebe623428c3620a4b (patch)
tree3ff1ea9ec224278f8e0548f54de14a6d3cd84372 /arch/arm64/kernel/Makefile
parentarm64: errata: Pass --fix-cortex-a53-843419 to ld if workaround enabled (diff)
downloadlinux-cfa88c79462d15098db29edebe623428c3620a4b.tar.xz
linux-cfa88c79462d15098db29edebe623428c3620a4b.zip
arm64: Set UTS_MACHINE in the Makefile
The make rpm target depends on proper UTS_MACHINE definition. Also, use the variable in arch/arm64/kernel/setup.c, so that it's not accidentally removed in the future. Reported-and-tested-by: Fabian Vogt <fvogt@suse.com> Signed-off-by: Michal Marek <mmarek@suse.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/Makefile')
-rw-r--r--arch/arm64/kernel/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index 14f7b651c787..7d66bbaafc0c 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -10,6 +10,8 @@ CFLAGS_REMOVE_ftrace.o = -pg
CFLAGS_REMOVE_insn.o = -pg
CFLAGS_REMOVE_return_address.o = -pg
+CFLAGS_setup.o = -DUTS_MACHINE='"$(UTS_MACHINE)"'
+
# Object file lists.
arm64-obj-y := debug-monitors.o entry.o irq.o fpsimd.o \
entry-fpsimd.o process.o ptrace.o setup.o signal.o \