summaryrefslogtreecommitdiff
path: root/include/target.mk
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2014-11-24 06:33:13 +0000
committerFlorian Fainelli <florian@openwrt.org>2014-11-24 06:33:13 +0000
commitdd8d7188eea747c9fc7f11f48cd127ea8e7f273e (patch)
treedb9407e9b1528cabf602701a7be9e12913e9b2eb /include/target.mk
parentd6da770a80303b163bbebb5fd383219f075f4e14 (diff)
downloadmtk-20170518-dd8d7188eea747c9fc7f11f48cd127ea8e7f273e.zip
mtk-20170518-dd8d7188eea747c9fc7f11f48cd127ea8e7f273e.tar.gz
mtk-20170518-dd8d7188eea747c9fc7f11f48cd127ea8e7f273e.tar.bz2
aarch64: add initial support
Add initial support for the AArch64 architecture Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 43353
Diffstat (limited to 'include/target.mk')
-rw-r--r--include/target.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/target.mk b/include/target.mk
index 3401f84..17413f9 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -252,6 +252,10 @@ ifeq ($(DUMP),1)
CPU_TYPE = sparc
CPU_CFLAGS_ultrasparc = -mcpu=ultrasparc
endif
+ ifeq ($(ARCH),aarch64)
+ CPU_TYPE ?= armv8-a
+ CPU_CFLAGS_armv8-a = -mcpu=armv8-a
+ endif
DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE)))
endif