[meta-xilinx] [meta-xilinx-bsp][PATCH] xilinx-testimage.bbclass: Create xilinx testimage bbclass

Manjukumar Matha manjukumar.harthikote-matha at xilinx.com
Wed Dec 19 17:11:17 PST 2018


From: Sai Hari Chandana Kalluri <chandana.kalluri at xilinx.com>

The testimage class from core does not support wic.qemu-sd as fstype
hence incorrect arguments are passed when launching qemu instances with
*.wic.qemu-sd as rootfs. This patch creates a custom testimage bbclass
specific to xilinx to support wic.qemu-sd fstypes and ensure right
arguments are passed.

Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri at xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr at xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
---
 meta-xilinx-bsp/classes/xilinx-testimage.bbclass | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 meta-xilinx-bsp/classes/xilinx-testimage.bbclass

diff --git a/meta-xilinx-bsp/classes/xilinx-testimage.bbclass b/meta-xilinx-bsp/classes/xilinx-testimage.bbclass
new file mode 100644
index 0000000..d9086ec
--- /dev/null
+++ b/meta-xilinx-bsp/classes/xilinx-testimage.bbclass
@@ -0,0 +1,9 @@
+inherit testimage
+
+HOSTTOOLS += 'ip ping ps scp ssh stty'
+
+python do_testimage_prepend () {
+    from oeqa.core.target.qemu import supported_fstypes
+    supported_fstypes.append('wic.qemu-sd')
+}
+
-- 
2.7.4



More information about the meta-xilinx mailing list