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

Torben Hohn torben.hohn at linutronix.de
Tue Jan 8 11:56:51 CET 2019


Extract the kernel from the image and make it an artifact.
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 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/examples/arm64-qemu-virt.xml b/examples/arm64-qemu-virt.xml
index 67b0eb91..51b54f45 100644
--- a/examples/arm64-qemu-virt.xml
+++ b/examples/arm64-qemu-virt.xml
@@ -76,5 +76,12 @@
 			<pkg>ntpdate</pkg>
 			<pkg>busybox</pkg>
 		</pkg-list>
+		<project-finetuning>
+			<losetup img="sdcard.img">
+				<!-- globs work, but must make sure, that only a single file is matched -->
+				<copy_from_partition part="1" artifact="vmlinuz">/vmlinuz-3.16.0-*-arm64</copy_from_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