docker: Allow clang-android to target riscv
Android's clang has supported RISC-V since at least clang-r468909b:
$ prebuilts-trunk/clang/host/linux-x86/clang-r468909b/bin/clang -print-targets
Registered Targets:
aarch64 - AArch64 (little endian)
aarch64_32 - AArch64 (little endian ILP32)
aarch64_be - AArch64 (big endian)
arm - ARM
arm64 - ARM64 (little endian)
arm64_32 - ARM64 (little endian ILP32)
armeb - ARM (big endian)
bpf - BPF (host endian)
bpfeb - BPF (big endian)
bpfel - BPF (little endian)
riscv32 - 32-bit RISC-V
riscv64 - 64-bit RISC-V
thumb - Thumb
thumbeb - Thumb (big endian)
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
In order to facilitate building Android's RISC-V gki_defconfig in kernel/common, allow targeting riscv with clang-android.
Meta comment: We hit this while testing with tuxsuite
. If there is something else that needs to be done for tuxsuite
after this, please let me know what that is.