diff --git a/meta-ohos-foundation/recipes-samgr/samgr/samgr_git.bb b/meta-ohos-foundation/recipes-samgr/samgr/samgr_git.bb index a9c8b60f28850069a7445785a446974216e7f5ba..76f940198da8d4d5bd9159a7ef5bfea557a2a54d 100644 --- a/meta-ohos-foundation/recipes-samgr/samgr/samgr_git.bb +++ b/meta-ohos-foundation/recipes-samgr/samgr/samgr_git.bb @@ -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":