Update QEMU vhost-user devices recipes and fix compilation 68/30368/5
authorTimos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
Thu, 3 Oct 2024 08:32:56 +0000 (11:32 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 4 Nov 2024 09:47:30 +0000 (09:47 +0000)
Include only vhost-user-blk, remove vhost-user-rng/input
since their rust implementations (by vhost-device crate)
are already included.

Introduce a temporary solution for QEMU compilation error
by adding '--disable-werror' during configuration.

Bug-AGL: SPEC-4966
Change-Id: Ie6cd81228391b5e5cd2285a68aa7ab176c631f76
Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
meta-egvirt/recipes-qemu/qemu-vhost-user-devices/qemu-vhost-user-devices.bb

index 032375c..0ce3734 100644 (file)
@@ -23,20 +23,18 @@ export LIBTOOL="${HOST_SYS}-libtool"
 
 B = "${WORKDIR}/build"
 
+do_configure[cleandirs] += "${B}"
 do_configure() {
     unset bindir libdir mandir datadir includedir libexecdir
     # Pass empty --cross-prefix to suspend errors due to build configurations
     # on different architectures. CC/CXX and other build variables are set by Yocto
     # itself correct.
-    ${S}/configure --cross-prefix=
+    ${S}/configure --disable-werror --cross-prefix=
 }
-do_configure[cleandirs] += "${B}"
 
 do_install() {
         mkdir ${D}/usr/bin/ -p
-        install -m 0755 ${S}/../build/contrib/vhost-user-input/vhost-user-input ${D}/usr/bin/
-        install -m 0755 ${S}/../build/contrib/vhost-user-blk/vhost-user-blk ${D}/usr/bin/
-        install -m 0755 ${S}/../build/tools/vhost-user-rng/vhost-user-rng ${D}/usr/bin/
+        install -m 0755 ${B}/contrib/vhost-user-blk/vhost-user-blk ${D}/usr/bin/
 }
 
 FILES:${PN} += "/usr/bin"