arm64: makefile: fix uname munging when setting ARCH on native machine
authorWill Deacon <will.deacon@arm.com>
Fri, 18 Jan 2013 19:00:47 +0000 (19:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jan 2013 04:49:00 +0000 (20:49 -0800)
commit8380f1ac24cf817ad65afbfa7ae9ab445dc04fc9
tree1db97623130046b09c4beb6d460406aa8c92de9c
parent0ce1fda598f8e78e35ca17b1e24ed8c43e597b02
arm64: makefile: fix uname munging when setting ARCH on native machine

commit f1b99392caf120d7533da260318fae0eb5053737 upstream.

By popular demand, arch/aarch64 is now known as arch/arm64. However,
uname -m (and indeed the GNU triplet) still use aarch64 as the machine
string.

This patch fixes native builds of both the kernel and perf tools by
updating the relevant Makefiles to munge the output of uname -m and
set the ARCH variable appropriately.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Makefile
tools/perf/Makefile