add detection of mips archs

cute-signatures
Nils Andreas Svee 2017-12-10 01:19:26 +01:00 committed by Timo Teräs
parent 97d8aab0c2
commit 0700e8318f
1 changed files with 8 additions and 0 deletions

View File

@ -99,6 +99,14 @@ extern char **apk_argv;
#define APK_DEFAULT_ARCH "aarch64"
#elif defined(__s390x__)
#define APK_DEFAULT_ARCH "s390x"
#elif defined(__mips64) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define APK_DEFAULT_ARCH "mips64"
#elif defined(__mips64) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define APK_DEFAULT_ARCH "mips64el"
#elif defined(__mips__) && __BYTE_ORDER__ == __ORDER_BIG__ENDIAN__
#define APK_DEFAULT_ARCH "mips"
#elif defined(__mips__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define APK_DEFAULT_ARCH "mipsel"
#else
#error APK_DEFAULT_ARCH not detected for this architecture
#endif