linuxloader: Avoid confusing string concat errors

None is a bad choice of return value for functions used in variables
(strings) as a failure results in concatination errors. Use a string
with a clear meaning that can be searched for instead.

(From OE-Core rev: c04f04e714ede5d3904058ec82459139ed5e42fa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2020-12-19 11:42:58 +00:00
parent 65e67f4028
commit e90cea97d2

View File

@ -1,6 +1,6 @@
def get_musl_loader_arch(d):
import re
ldso_arch = None
ldso_arch = "NotSupported"
targetarch = d.getVar("TARGET_ARCH")
if targetarch.startswith("microblaze"):
@ -32,7 +32,7 @@ def get_musl_loader(d):
def get_glibc_loader(d):
import re
dynamic_loader = None
dynamic_loader = "NotSupported"
targetarch = d.getVar("TARGET_ARCH")
if targetarch in ["powerpc", "microblaze"]:
dynamic_loader = "${base_libdir}/ld.so.1"
@ -58,7 +58,7 @@ def get_linuxloader(d):
overrides = d.getVar("OVERRIDES").split(":")
if "libc-baremetal" in overrides:
return None
return "NotSupported"
if "libc-musl" in overrides:
dynamic_loader = get_musl_loader(d)