summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2024-01-07 11:34:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-09 22:59:28 +0000
commit0d93308425fd1e668dc43bcfe4b282289a30506a (patch)
treee0c52597582ad5c0feaeb2ba5736f9b74fe8ffc6
parent04f1d1ec6bd7ad84116d129a88295f9d2a7cb5e3 (diff)
downloadpoky-0d93308425fd1e668dc43bcfe4b282289a30506a.tar.gz
qemu.bbclass: fix a python TypeError
QEMU_OPTIONS can be empty which will trigger a exception TypeError: | can only concatenate str (not "NoneType") to str. Fix it by setting a empty string. ALso removed two useless blanks. (From OE-Core rev: b619197bd52a4a99a9989e7ea6fb7032415b1e42) Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/qemu.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/qemu.bbclass b/meta/classes-recipe/qemu.bbclass
index 874b15127c..dbb5ee0b66 100644
--- a/meta/classes-recipe/qemu.bbclass
+++ b/meta/classes-recipe/qemu.bbclass
@@ -34,7 +34,7 @@ def qemu_wrapper_cmdline(data, rootfs_path, library_paths):
34 if qemu_binary == "qemu-allarch": 34 if qemu_binary == "qemu-allarch":
35 qemu_binary = "qemuwrapper" 35 qemu_binary = "qemuwrapper"
36 36
37 qemu_options = data.getVar("QEMU_OPTIONS") 37 qemu_options = data.getVar("QEMU_OPTIONS") or ""
38 38
39 return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + qemu_options + " -L " + rootfs_path\ 39 return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + qemu_options + " -L " + rootfs_path\
40 + " -E LD_LIBRARY_PATH=" + ":".join(library_paths) + " " 40 + " -E LD_LIBRARY_PATH=" + ":".join(library_paths) + " "