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
diff --git a/libc/Android.bp b/libc/Android.bp
index de564a7..02f0513 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -2334,6 +2334,14 @@
}
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",
to: "i686-linux-android",
@@ -2362,6 +2370,7 @@
"libc_kernel_android_scsi",
"libc_asm_arm",
"libc_asm_arm64",
+ "libc_asm_riscv64",
"libc_asm_x86",
"libc_asm_x86_64",
],