[elbe-devel] [PATCH 5/6] examples arm64-qemu-virt: add project-finetuning section

Torben Hohn torben.hohn at linutronix.de
Wed Dec 19 17:02:03 CET 2018


try to extract the kernel from the image (untested, dont know the correct
filename for sure)
Also convert image to qcow2, because this image is intended to be used
with qemu.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 examples/arm64-qemu-virt.xml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/examples/arm64-qemu-virt.xml b/examples/arm64-qemu-virt.xml
index 6b03b294..f5601da9 100644
--- a/examples/arm64-qemu-virt.xml
+++ b/examples/arm64-qemu-virt.xml
@@ -76,5 +76,11 @@
 			<pkg>ntpdate</pkg>
 			<pkg>busybox</pkg>
 		</pkg-list>
+		<project-finetuning>
+			<losetup img="sdcard.img">
+				<copy_from_partition part="1" artifact="zImage">/zImage</extract_partition>
+			</losetup>
+			<img_convert fmt="qcow2" dst="sdcard.qcow2">sdcard.img</img_convert>
+		</project-finetuning>
 	</target>
 </ns0:RootFileSystem>
-- 
2.11.0




More information about the elbe-devel mailing list