From 6102528ec20c807e7b3e7f4428dfd3bb8bca7505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 12 Jul 2017 22:31:20 +0200 Subject: [PATCH] qemu-ext.bbclass: extend library serch path by QEMU_EXTRA_LIBDIR optionally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- classes/qemu-ext.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/classes/qemu-ext.bbclass b/classes/qemu-ext.bbclass index 003812f2..92d8c8de 100644 --- a/classes/qemu-ext.bbclass +++ b/classes/qemu-ext.bbclass @@ -13,10 +13,15 @@ def qemu_run_binary_local(data, rootfs_path, binary): libdir = rootfs_path + data.getVar("libdir", False) base_libdir = rootfs_path + data.getVar("base_libdir", False) + extra_libdir = data.getVar("QEMU_EXTRA_LIBDIR", False) + if extra_libdir: + extra_libdir = ":" + extra_libdir + else: + extra_libdir = "" qemu_options = data.getVar("QEMU_OPTIONS", True) return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + qemu_options + " -L " + rootfs_path\ - + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\ + + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + extra_libdir + " "\ + binary