diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-05-17 11:12:29 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-05-17 11:12:29 +0000 |
commit | 5e251b21fd791ec5f6830af5ca18333c8db1b1c8 (patch) | |
tree | 2c6704fa0a1b201142a2641b6a26397c40bee214 | |
parent | 7b76182f39c4b42f4bb498b7cc75384a36afd855 (diff) | |
parent | 0732976dbe39d04800a34664f05be7ab01660c49 (diff) | |
download | apk-tools-5e251b21fd791ec5f6830af5ca18333c8db1b1c8.tar.gz apk-tools-5e251b21fd791ec5f6830af5ca18333c8db1b1c8.tar.bz2 apk-tools-5e251b21fd791ec5f6830af5ca18333c8db1b1c8.tar.xz apk-tools-5e251b21fd791ec5f6830af5ca18333c8db1b1c8.zip |
Merge branch 'add-riscv-arch-defines' into 'master'
define APK_DEFAULT_ARCH for riscv32 and riscv64 targets
See merge request alpine/apk-tools!26
-rw-r--r-- | src/apk_defines.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h index dfdb32a..505b212 100644 --- a/src/apk_defines.h +++ b/src/apk_defines.h @@ -117,6 +117,10 @@ extern char **apk_argv; #define APK_DEFAULT_ARCH "mips" #elif defined(__mips__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #define APK_DEFAULT_ARCH "mipsel" +#elif defined(__riscv) && __riscv_xlen == 32 +#define APK_DEFAULT_ARCH "riscv32" +#elif defined(__riscv) && __riscv_xlen == 64 +#define APK_DEFAULT_ARCH "riscv64" #else #error APK_DEFAULT_ARCH not detected for this architecture #endif |