From: Christopher Clark <christopher.w.cl...@gmail.com>

This commit fixes the xen-image-minimal build for non-x86 arch with PCI enabled.

The Linux kernel option CONFIG_XEN_PCIDEV_BACKEND currently depends on X86.
This means that the xen-pciback kernel module cannot be included in this image
for non-x86 architecture builds, so don't attempt to install it in that case.

Signed-off-by: Christopher Clark <christopher.cla...@baesystems.com>
---

Please use my gmail address for any correspondence.

 recipes-extended/images/xen-image-minimal.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/recipes-extended/images/xen-image-minimal.bb 
b/recipes-extended/images/xen-image-minimal.bb
index 94240f6..a01976e 100644
--- a/recipes-extended/images/xen-image-minimal.bb
+++ b/recipes-extended/images/xen-image-minimal.bb
@@ -10,12 +10,17 @@ IMAGE_INSTALL += " \
     kernel-module-xen-gntalloc \
     kernel-module-xen-gntdev \
     kernel-module-xen-netback \
-    ${@bb.utils.contains('MACHINE_FEATURES', 'pci', 
'kernel-module-xen-pciback', '', d)} \
     kernel-module-xen-wdt \
     xen-base \
     qemu \
     "
 
+# Linux kernel option CONFIG_XEN_PCIDEV_BACKEND depends on X86
+IMAGE_INSTALL_x86 += " \
+    ${@bb.utils.contains('MACHINE_FEATURES', 'pci', 
'kernel-module-xen-pciback', '', d)}"
+IMAGE_INSTALL_x86-64 += " \
+    ${@bb.utils.contains('MACHINE_FEATURES', 'pci', 
'kernel-module-xen-pciback', '', d)}"
+
 LICENSE = "MIT"
 
 inherit core-image
-- 
2.7.4

-- 
_______________________________________________
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization

Reply via email to