summaryrefslogtreecommitdiff
path: root/src/apk_defines.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-07-08 11:09:00 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-07-08 11:10:32 +0300
commit06ae5fdfdccd0c8e6d5501d93666bd915d2604d1 (patch)
tree8374bd8028b379869ae946f68a1b75761c6ce612 /src/apk_defines.h
parent5723afded3fe67588fbdd7d398b8db19f134f759 (diff)
downloadapk-tools-06ae5fdfdccd0c8e6d5501d93666bd915d2604d1.tar.gz
apk-tools-06ae5fdfdccd0c8e6d5501d93666bd915d2604d1.tar.bz2
apk-tools-06ae5fdfdccd0c8e6d5501d93666bd915d2604d1.tar.xz
apk-tools-06ae5fdfdccd0c8e6d5501d93666bd915d2604d1.zip
detect aarch64 architecture and assign default name for it
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r--src/apk_defines.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h
index 2aca364..9b2e904 100644
--- a/src/apk_defines.h
+++ b/src/apk_defines.h
@@ -93,9 +93,10 @@ extern char **apk_argv;
#define APK_DEFAULT_ARCH "armhf"
#elif defined(__arm__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define APK_DEFAULT_ARCH "armel"
+#elif defined(__aarch64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+#define APK_DEFAULT_ARCH "aarch64"
#else
-#warning APK_DEFAULT_ARCH is not set for this architecture
-#define APK_DEFAULT_ARCH "noarch"
+#error APK_DEFAULT_ARCH not detected for this architecture
#endif
#define APK_MAX_REPOS 32 /* see struct apk_package */