cross-canadian: make android pass target sys check

We could build an Android toolchain but its triple should
always contain the string android or clang can't link
the right object files for it.

(From OE-Core rev: e9527164cfd628cfd3def2077cc19e75add06db8)

Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Hsia-Jun(Randy) Li
2021-09-06 18:30:34 +08:00
committed by Richard Purdie
parent 714f11a72d
commit 73967f5e6f

View File

@@ -40,6 +40,8 @@ python () {
extralibcs = [""]
if "musl" in d.getVar("BASECANADIANEXTRAOS"):
extralibcs.append("musl")
if "android" in tos:
extralibcs.append("android")
for variant in ["", "spe", "x32", "eabi", "n32", "_ilp32"]:
for libc in extralibcs:
entry = "linux"