Skip to content
Snippets Groups Projects
Commit 62651fe6 authored by Zbigniew Bodek's avatar Zbigniew Bodek
Browse files

Fix incorrect API detection for different Linux flavors


Some Linux builds may have different TARGET_OS, such as
linux-musl or linux-gnueabi.
Fix matching all of those variants into one - "linux".

Signed-off-by: default avatarZbigniew Bodek <zbigniew.bodek@huawei.com>
parent 903b99aa
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,10 @@ LDFLAGS_SAMGR = "${LDFLAGS} -lsec -pthread -L${B} -Wl,-soname,lib${PN}.so.${PVMA
def get_target_adapter(d):
targetOs = d.getVar('TARGET_OS', True)
# generalize targetOs variable for all Linux build variants
if "linux" in targetOs:
targetOs = "linux"
if targetOs == "linux" or targetOs == "liteos_a":
targetAdapter = "posix"
elif targetOs == "liteos_m":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment