[OE-core] [PATCH] qemuriscv: Generate a wic rootFS with a larger filesystem

Alistair Francis alistair.francis at wdc.com
Fri Aug 30 15:41:05 UTC 2019


This allows us to generate a rootFS with a large filesystem for use with
QEMU.

Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
---
 meta/conf/machine/include/riscv/qemuriscv.inc | 4 +++-
 scripts/lib/wic/canned-wks/qemuriscv.wks      | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 scripts/lib/wic/canned-wks/qemuriscv.wks

diff --git a/meta/conf/machine/include/riscv/qemuriscv.inc b/meta/conf/machine/include/riscv/qemuriscv.inc
index 952779e98e..df35f2808f 100644
--- a/meta/conf/machine/include/riscv/qemuriscv.inc
+++ b/meta/conf/machine/include/riscv/qemuriscv.inc
@@ -11,7 +11,9 @@ KEEPUIMAGE = "no"
 
 SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0"
 
-IMAGE_FSTYPES_append = " ext4"
+IMAGE_FSTYPES += "ext4 wic.qcow2"
+
+WKS_FILE ?= "qemuriscv.wks"
 
 MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
 
diff --git a/scripts/lib/wic/canned-wks/qemuriscv.wks b/scripts/lib/wic/canned-wks/qemuriscv.wks
new file mode 100644
index 0000000000..12c68b7069
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/qemuriscv.wks
@@ -0,0 +1,3 @@
+# short-description: Create qcow2 image for RISC-V QEMU machines
+
+part / --source rootfs --fstype=ext4 --label root --align 4096 --size 5G
-- 
2.22.0



More information about the Openembedded-core mailing list