summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHsia-Jun(Randy) Li <randy.li@synaptics.com>2021-09-06 18:30:34 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-10 09:25:38 +0100
commit73967f5e6f7f617609cd34d9fe3aff95d9e15bbe (patch)
tree7ea2e0e21af3497e505a59f937a5cbba5266c615
parent714f11a72d9d158428a267a7424c2e0f28aa8d1c (diff)
downloadpoky-73967f5e6f7f617609cd34d9fe3aff95d9e15bbe.tar.gz
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>
-rw-r--r--meta/classes/cross-canadian.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass
index 447a2bb158..ffbc2167e3 100644
--- a/meta/classes/cross-canadian.bbclass
+++ b/meta/classes/cross-canadian.bbclass
@@ -40,6 +40,8 @@ python () {
40 extralibcs = [""] 40 extralibcs = [""]
41 if "musl" in d.getVar("BASECANADIANEXTRAOS"): 41 if "musl" in d.getVar("BASECANADIANEXTRAOS"):
42 extralibcs.append("musl") 42 extralibcs.append("musl")
43 if "android" in tos:
44 extralibcs.append("android")
43 for variant in ["", "spe", "x32", "eabi", "n32", "_ilp32"]: 45 for variant in ["", "spe", "x32", "eabi", "n32", "_ilp32"]:
44 for libc in extralibcs: 46 for libc in extralibcs:
45 entry = "linux" 47 entry = "linux"