From bd26e0fd89162ae40ec258af4f47ffacf8aeffaa Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 19 Oct 2022 15:03:14 -0700 Subject: [PATCH] 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 --- libc/Android.bp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libc/Android.bp b/libc/Android.bp index de564a7d0..02f0513ce 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -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", ],