ANDROID: build.config: set NDK_TRIPLE

In order to support CONFIG_UAPI_HEADER_TEST=y with a bionic sysroot
using prebuilt bionic from the NDK, we need to set a different target
triple for USERCFLAGS than what's used when cross compiling the kernel
(so that the correct headers and libc.{a|so} are found+used).

Bug: 190019968
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Ib3e60c41b862cda9f79ff8d2c812aaa8bfb571af
This commit is contained in:
Nick Desaulniers 2022-03-29 13:42:11 -07:00
parent 7133ff2a3e
commit 766ce14553
3 changed files with 6 additions and 0 deletions

View File

@ -12,3 +12,5 @@ vmlinux.symvers
modules.builtin
modules.builtin.modinfo
"
NDK_TRIPLE=aarch64-linux-android31

View File

@ -9,3 +9,5 @@ arch/arm/boot/zImage
vmlinux
System.map
"
NDK_TRIPLE=arm-linux-androideabi31

View File

@ -12,3 +12,5 @@ vmlinux.symvers
modules.builtin
modules.builtin.modinfo
"
NDK_TRIPLE=x86_64-linux-android31