Add riscv64 kernel headers to the ndk sysroot

Add riscv64 kernel headers to the ndk sysroot for use by the LLVM
toolchain build.  They will not be shipped in the real NDK.

Test: lunch aosp_riscv64-userdebug && m ndk_sysroot
Change-Id: I804e66b56919b84fa5dc03d432ae673ea4f31615
This commit is contained in:
Colin Cross 2022-10-19 15:03:14 -07:00
parent 8333532f3b
commit bd26e0fd89

View file

@ -2333,6 +2333,14 @@ ndk_headers {
license: "NOTICE",
}
ndk_headers {
name: "libc_asm_riscv64",
from: "kernel/uapi/asm-riscv",
to: "riscv64-linux-android",
srcs: ["kernel/uapi/asm-riscv/**/*.h"],
license: "NOTICE",
}
ndk_headers {
name: "libc_asm_x86",
from: "kernel/uapi/asm-x86",
@ -2362,6 +2370,7 @@ ndk_library {
"libc_kernel_android_scsi",
"libc_asm_arm",
"libc_asm_arm64",
"libc_asm_riscv64",
"libc_asm_x86",
"libc_asm_x86_64",
],