Commit 5e251b21 authored by Timo Teräs's avatar Timo Teräs

Merge branch 'add-riscv-arch-defines' into 'master'

define APK_DEFAULT_ARCH for riscv32 and riscv64 targets

See merge request !26
parents 7b76182f 0732976d
Pipeline #18393 passed with stage
in 40 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment