[meta-virtualization] [PATCH] libvirt: fix Nothing PROVIDES 'numactl' on ARM

Hongxu Jia hongxu.jia at windriver.com
Wed May 15 09:06:38 PDT 2019


ARM does not currently support NUMA, and defines COMPATIBLE_HOST in recipe
numactl

Since commit [b5b5def libvirt: add hook support] applied, it failed with
Nothing PROVIDES 'numactl' on ARM BSP, not all BSP define var-KARCH but
define var-TARGET_ARCH

So check var-TARGET_ARCH, and add numactl to PACKAGECONFIG conditionally

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
 recipes-extended/libvirt/libvirt_5.3.0.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/recipes-extended/libvirt/libvirt_5.3.0.bb b/recipes-extended/libvirt/libvirt_5.3.0.bb
index 30bb44c..a949e8f 100644
--- a/recipes-extended/libvirt/libvirt_5.3.0.bb
+++ b/recipes-extended/libvirt/libvirt_5.3.0.bb
@@ -189,9 +189,17 @@ PACKAGECONFIG ??= "qemu yajl openvz vmware vbox esx iproute2 lxc test \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit libcap-ng', '', d)} \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'libxl', '', d)} \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'polkit', '', d)} \
-                   ${@bb.utils.contains('KARCH', 'arm', '', 'numactl', d)} \
+                   ${@support_numactl(d)} \
                   "
 
+def support_numactl(d):
+    targetarch = d.getVar("TARGET_ARCH")
+    # ARM does not currently support NUMA
+    if targetarch.startswith("arm"):
+        return ""
+
+    return "numactl"
+
 # qemu is NOT compatible with mips64
 PACKAGECONFIG_remove_mipsarchn32 = "qemu"
 PACKAGECONFIG_remove_mipsarchn64 = "qemu"
-- 
2.7.4



More information about the meta-virtualization mailing list