Return-Path: Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by mail.openembedded.org (Postfix) with ESMTP id B752A7E54F for ; Fri, 7 Jun 2019 22:14:19 +0000 (UTC) Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x57MEKvQ016581 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 8 Jun 2019 00:14:20 +0200 Received: from dev.vm6.ccp.siemens.com ([167.87.34.89]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id x57MEIMR008395; Sat, 8 Jun 2019 00:14:18 +0200 Received: from dev.localdomain (localhost [127.0.0.1]) by dev.vm6.ccp.siemens.com (Postfix) with ESMTP id AF9172325006; Sat, 8 Jun 2019 00:14:17 +0200 (CEST) From: Adrian Freihofer To: openembedded-core@lists.openembedded.org Date: Sat, 8 Jun 2019 00:13:52 +0200 Message-Id: <20190607221356.28867-1-adrian.freihofer@siemens.com> X-Mailer: git-send-email 2.11.0 Cc: Adrian Freihofer Subject: [meta-oe][PATCH v2 0/4] runqemu: support non-bootable wic images X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jun 2019 22:14:21 -0000 Resolves [Yocto 13336] Compared to v1, no new wic-nb image type is added (this caused problems with bitbake -c testimage). runqemu now evaluates the QB_MACHINE setting to determine whether a wic image should be booted as a vmtype image (kernel loaded from file passed by -kernel option) or as a fstype image (kernel in image). If QB_MACHINE contains "-machine virt" runqemu passes a "-kernel" parameter to qemu. Otherwise runqemu treats the wic image as vmtype image as before. The last patch additionally allows the user to enforce one behavior by passing wic-vm or wic-fs to runqemu. Adrian Freihofer (4): qemurunner: fix undefined variable testimage: consider QB_DEFAULT_FSTYPE runqemu: support non-bootable wic images runqemu: add wic-fs and wic-wm paramters meta/classes/testimage.bbclass | 6 +++++- meta/lib/oeqa/utils/qemurunner.py | 1 + scripts/runqemu | 40 +++++++++++++++++++++++++++++++++------ 3 files changed, 40 insertions(+), 7 deletions(-) -- 2.11.0