mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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:
parent
65e67f4028
commit
e90cea97d2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user